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
How many root nodes are there in an xml document?
Why do I get an error (cs1006) when trying to declare a method without specifying a return type?
What is difference between dll and exe in c#?
Explain the difference between a Private Assembly and a Shared Assembly
What is parallel foreach c#?
What is iqueryable in linq?
can you declare an override method to be static if the original method is not static?
What is an assembly qualified name? Is it a filename? How is it different?
Define multicast delegate in c#?
What are the 2 kinds of data type conversions in c#?
What is method overriding in c#
What is the difference between ienumerable and icollection?
Can you prevent a class from being instantiated?
Can list contain duplicates c#?
What is private class in c#?