Can you store multiple data types in System.Array?
Answers were Sorted based on User's Feedback
Answer / lalit
We can store multiple data types in an ArrayList but not in
a System.Array.
| Is This Answer Correct ? | 12 Yes | 0 No |
Answer / 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 |
Answer / rakesh
Storing multiple data types in System.Array is not
possible,if u want to store multiple data type means use
ArrayList.It is auto expandable too
| Is This Answer Correct ? | 6 Yes | 2 No |
Answer / ramu
If you want to store multiple data types use Hashtable.
In array you cannot store multiple data types.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / sam
yes we can store multiple data type in system.Arry but the problem is when we retrieve the data then...
| Is This Answer Correct ? | 2 Yes | 4 No |
What are the types of access modifiers?
what are wrapper classes?
How do you mark a method obsolete?
Explain about finalize method?
Hello Friends..am Mohammed riyash..final year BCA in Jamal Mohamed College 2009. Trichy. My doubt is while connecting SQL2005 Built in Database withing the Visual Studio 2005 Framework.. I am getting the error.. That " An Error occurred and it may be due to , under the default settings of the Server, the connection cannot be established.." But the code works in MS Access for me.. Both in VB.Net and C#.Net am getting the same error.. Any genius please Message me to 9994558822 or mail me.. riyash.ips@gmail.com
What is attribute c#?
What is a callback c#?
List some of the classes used by system.data namespace?
Can you drink alcohol with a loop recorder?
Does c# support a variable number of arguments?
What is asp net in c#?
Is a c# interface the same as a c++ abstract class?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)