Simple equivalent of “With” statement in C#
Posted by Anay on August 9, 2009
12 comments
Consider the following class in C# public class Person { private string name; private int age; public string Name{ get {return name;} set { name = value; } } public int Age{ get {return age;} set { age = value; } } } If I want to set the value of Name and Age property [...]