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

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?