initializing c# auto-properties
i'm used minute classes this:
public category foo {
private twine mbar = "bar";
open twine bar {
{ relapse mbar; }
set { mbar = value; }
}
//... methods, constructor ...
}
converting bar an auto-property seems accessible concise, nonetheless i keep initialization but adding constructor putting initialization there?
public category foo2therevengeoffoo {
//private twine mbar = "bar";
open twine bar { get; set; }
//... methods, constructor ...
//behavior changed.
}
you adding constructor isn't inline bid resources i'm ostensible removing auto-properties.
something some-more clarity me:
public twine bar { get; set; } = "bar";
Comments
Post a Comment