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 |
Is c# and .net same?
Which is faster iqueryable or ienumerable?
What is console readkey in vb net?
How to achieve polymorphism in c#?
What is Co- and Contra-Variance in C#?
What is instantiating a class in c#?
What is view state c#?
hi, is compulsory .net knowledge need for biztalk server training. if need, how far?.tell me some info abt real time instructors in hyd or other?
What is cshtml extension?
How do you define a predicate?
When should I use static in C#?
0 Answers SwanSoft Technologies,
If I have code like try { return; } catch { return; } finally { return; } from which block will the value will be returned. and try has been executed without any error.