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
Is datetime value type c#?
What are escape sequences explain with example?
What is reference c#?
What is an int in c#?
What happens if the inherited interfaces have conflicting method names?
Why do we need abstract class?
How is a string immutable?
What is the name of c# compiler?
Explain about WSDL
Which is better interface or abstract class in c#?
Explain the difference between proc. Sent by val and by sub?
What is the usage of Enumeration in C# Programming and is it good to use or not ?
Does c# have a 'throws' clause?
What is JIT (just in time)? how it works?
Name some properties of thread class.