I have a class and I want to set the value of the properties..
which way is better and faster
1st approach..
AgendaItem obj= new AgendaItem {
UserID = 1,
ItemID= 2,
Message = "some message"
};
2nd approach..
AgendaItem obj= new AgendaItem();
obj.UserID = 1;
obj.ItemID= 2;
obj.Message = "some message";
suggest which we shud use..
Go to the complete details ...