When calling ToString() on Breach or Paste, the type name is returned because these methods aren't overridden. If we override ToString() we can return actually useful information, like in the DebuggerDisplayAttribute on those classes.
Suggestion:
Override ToString() on Breach and return the value of the Name property;
Override ToString() on Paste and return the value of the Title property.
(Inspired by #40)
When calling
ToString()
onBreach
orPaste
, the type name is returned because these methods aren't overridden. If we overrideToString()
we can return actually useful information, like in theDebuggerDisplayAttribute
on those classes.Suggestion:
ToString()
onBreach
and return the value of theName
property;ToString()
onPaste
and return the value of theTitle
property.