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

Which is faster hashtable or dictionary?

677


Which is better python or c#?

634


What does static mean in c sharp?

790


What is msil, and why should developers need an appreciation of it if at all?

798


What is string interpolation in c#?

712


What is getenumerator?

647


what is the index value of the first element in an array?

680


What is tryparse c#?

702


What is a nullreferenceexception?

732


What is difference between static and constant variable?

758


What is the difference between ref & out parameters in c#?

631


How to install or uninstall a windows service?

765


Contrast between an interface and abstract class?

727


Explain the difference between boxing and unboxing.

742


How do I format a string in c#?

642