In normal scenario we used to create and initialize object as
Sample sample = new Sample();
sample.Value = "value";
sample.Text = "text";
In C# 3.0 the same can be achieved as
Sample sample = new Sample()
{ Value="value", Text="text" };
Saturday, January 10, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment