Which collection will you use to store different types of
objects collection like... int, employee, student, object
etc.
Answers were Sorted based on User's Feedback
I would use array list. Every element in an array list is
of object type. Since object class is base class of all the
types in .net or any custom class so it will be possible to
store different types of objects like int,employee(Custom
class), student(custom class), object (base class itself)
into an Array list collection.
| Is This Answer Correct ? | 15 Yes | 12 No |
Answer / sumithra
We can use structure. Structure holds different types of data where as array is homogenous.
| Is This Answer Correct ? | 0 Yes | 0 No |
How do you remove the objects which are not in use?Explicitly or implicitly?What is the exact mechanism going behind?
2 Answers Advanced Software Systems, Choice Solutions,
What is .edmx file?
What can you do as a .net developer?
How Reflection is used and what it's significance ?
How do I open the console window?
Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?
How do I create a dbml file?
How can you sort the elements of the array in descending order?
How will U encapsulate button trigger event into text_box event of Pressing Enter key?
What is the difference between hashtable and dictionary in c#?
What is meant by collections in c#?
What are the Configuration files in .net?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)