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...

which datatype i have to use we i need dynamic size.for eg.
empname .in first row it have only five chars.but next row it
have 100 chars.

Answer Posted / kishore

we can use arraylist for dynamic size

Example:
Arraylist arlst=new Arraylist();
arlstl[0]="empname";
arlstl[1]="xyzz.........";

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write the syntax for catching an exception in c#?

883


What is the difference between console application and windows application?

1008


What is default value of enum c#?

892


What is multithreading? What are the problems that comes with multithreading and how to manage them?

976


Why dataset is used in c#?

965


What is the difference between CreateObject() and GetObject()?

1115


What is a Command Object in C#?

1032


How big is an int in c#?

981


Explain how do I convert a string to an int in c#?

973


What is the purpose of a console table?

944


What is property in c#?

913


In which way a two-dimensional array declared in C#?

911


How does return work in c#?

969


I have 3 overloaded constructors in my class. In order to avoid making instance of the class do I need to make all constructors to private?

959


Can dictionary have duplicate keys c#?

869