object instantiation helper
Is there something in resharper that will reflect over the public properties of an object that I am newing up and create it with default values?
For example I type var w = new Widget then hit <alt enter> and I can get
var w = new widget
{
id = 0,
color = ""
name = "",
...
} ;
I like to set every property on my data objects but when there are dozens of properties its a lot of typing.
Thanks,
Ken
Please sign in to leave a comment.