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

How many root nodes are there in an xml document?

847


Why do I get an error (cs1006) when trying to declare a method without specifying a return type?

935


What is difference between dll and exe in c#?

974


Explain the difference between a Private Assembly and a Shared Assembly

967


What is parallel foreach c#?

940


What is iqueryable in linq?

876


can you declare an override method to be static if the original method is not static?

1008


What is an assembly qualified name? Is it a filename? How is it different?

939


Define multicast delegate in c#?

925


What are the 2 kinds of data type conversions in c#?

877


What is method overriding in c#

1087


What is the difference between ienumerable and icollection?

921


Can you prevent a class from being instantiated?

990


Can list contain duplicates c#?

878


What is private class in c#?

925