Random programming things I'd want to remember

Friday, December 29, 2017

Tips for easy class visualization during debugging (Visual Studio/C#)

Note to self, either put this above the class declaration
[DebuggerDisplay("{Id}: {Name}")]
public class Foo
{
  public int Id {get;set;}
  public string Name {get;set;}
  ...
}
or override ToString() method :) source

No comments: