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 / srivathsan

i guess you cannot do that in a list too. because an array
list is also type safe.
eg:

List<int> arraylist = new List<int>();

the arraylist can contain only integer items.You cannot
store an item that is not an integer type in the arraylist.

Is This Answer Correct ?    4 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between iqueryable and ienumerable in c#?

823


What are predicates in c#?

889


What is delegates in c#?

847


What is using keyword in C#?

976


What is the purpose of static?

924


What is the difference between dynamic and var in c#?

875


Suppose two interfaces have same method, so how will you implement these methods in derive class?

908


How do you mark a method obsolete?

948


Can a struct have a default constructor (a constructor without parameters) or a destructor in c#?

921


What is the use of generics in c#?

814


How to implement an object pool in c#.net.

994


What is short in c#?

930


What is difference between continue and break in c#?

901


What is managed code?

980


How to use the sreamReader class to read form a text file?

941