Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is integer c#?

894


Is a char?

856


What is escape sequence in c#?

990


How to transpose multi-dimensional array?

1058


What is dbcontext c#?

971


In which way you can convert a value-type to a reference-type?

951


What happens if a static constructor throws an exception?

934


What's the difference between an integer and int?

1040


What's the difference between System.String and System..StringBuilder in C#?

974


Why we use extension methods in c#?

857


Is it not possible to store a boolean value as a variable?

843


How do you create partial methods?

959


What are static and dynamic variables?

1123


Which is faster abstract class or interface in c#?

960


What is sqldatareader c#?

854