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 |
in the nunit test framework, which attribute must adorn a test class in order for it to be picked up by the nunit gui?
What is the difference between Hash Table and Arrays?
Why do we use static class in c#?
What is the difference between package and interface?
What is primitive types in c#?
Explain about generics in c#.net?
What is a type c#?
Define an assembly in .net?
What is asynchronous one-way calls?
can we assign null value to value type in c#?
12 Answers Idea, Microsoft, Wipro,
What are the types of comment in c# with examples?
What is ienumerator c#?
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)