Collection of Objects in C#

Collection of Objects in C#
‘Collection of objects’ is an collection object, where each element stores a reference to some other object.
Used to store details of groups of people or things.
 
List<CName> listVariable = new List<CName>( );
listVariable.Add(ob1);
listVariable.Add(ob2);
listVariable.Add(ob3);

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply