Reverting from an automatic property to regular property in C#4.0?

AIP can be used only when no additional logic is required in the property accessors so, to revert them, just declare them the "old way": define a private property (if needed) and put the needed code in your property accessors blocks.

AIP can be used only "when no additional logic is required in the property accessors" so, to revert them, just declare them the "old way": define a private property (if needed) and put the needed code in your property accessors blocks.

You could do something like this to get your job done public String YourProperty { get { //append your business logic for the property here return something after some calculation //e.g. Area of a geometric figure } set { // Append your logic her fir e. G concatenation of firstname and lastname //(Firstname + Lastname); } }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions