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 is integer c#?
Is a char?
What is escape sequence in c#?
How to transpose multi-dimensional array?
What is dbcontext c#?
In which way you can convert a value-type to a reference-type?
What happens if a static constructor throws an exception?
What's the difference between an integer and int?
What's the difference between System.String and System..StringBuilder in C#?
Why we use extension methods in c#?
Is it not possible to store a boolean value as a variable?
How do you create partial methods?
What are static and dynamic variables?
Which is faster abstract class or interface in c#?
What is sqldatareader c#?