Can you store multiple data types in System.Array?
Answer Posted / raj
yes it is possible.
create an array of objects.
int i = 100;
string s = "hundred";
object [] obj = new object[2];
obj[0] = i;
obj[1] = s;
textbox1.Text = System.Convert.ToInt32(i) + "=" + s.ToString
();
Is This Answer Correct ? | 10 Yes | 6 No |
Post New Answer View All Answers
What are the problem with .NET generics?
Why do we use ienumerable in c#?
What is difference between abstraction and encapsulation in c#?
What is difference between constants and read-only?
How do I declare a pure virtual function in c#?
Differentiate between object pooling and connection pooling in c#?
is it possible to access a remote web service Without UDDI?
What is difference between function and method in c#?
What is sorting in c#?
What is the use of 'using' statement in c#?
Can a private virtual method can be overridden?
If I have more than one version of one assemblies, then how'll I use old version (how/where to specify version number?)in my application?
How can I access the registry from c# code?
What are data types in C#?
What is a generic class?