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 |
What is xslt in c#?
What is the main method?
What?s a satellite assembly?
What are value types and reference types?
Can you allow class to be inherited, but prevent the method from being over-ridden?
Can the accessibility of a type member be greater than the accessibility of its containing type?
what is collections and what is generics
how to Create a datagridview control with check box column with 8rows in it, the maximum number of check boxes checked should be 3, when user checks the 4th corresponding message should be displayed and check box should be checked. User can uncheck the checked boxes Note: read-only property should not be used
Is it possible to restrict the scope of a field/method of a class to the classes in the same namespace?
What is the lock statement in c#?
What is regex c#?
In which order the constructor is called for an inherited class?