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

Is datetime value type c#?

822


What are escape sequences explain with example?

889


What is reference c#?

926


What is an int in c#?

861


What happens if the inherited interfaces have conflicting method names?

942


Why do we need abstract class?

840


How is a string immutable?

871


What is the name of c# compiler?

1076


Explain about WSDL

994


Which is better interface or abstract class in c#?

763


Explain the difference between proc. Sent by val and by sub?

875


What is the usage of Enumeration in C# Programming and is it good to use or not ?

921


Does c# have a 'throws' clause?

968


What is JIT (just in time)? how it works?

934


Name some properties of thread class.

945