Maybe you can look into C# ArrayList
Noogard wrote:Tks for that. Well, then the ArrayList class in C# is somehow exactly Vector class in Java
chuawenching wrote: Noogard wrote:Tks for that. Well, then the ArrayList class in C# is somehow exactly Vector class in Java Yeah
Noogard wrote: chuawenching wrote: Noogard wrote: Tks for that. Well, then the ArrayList class in C# is somehow exactly Vector class in Java Yeah Erm, quite disappointed , I thought C# can do something like this:-----------------------int arr [] = new int[10];arr.extend(10); //or something like that-----------------------
chuawenching wrote: Noogard wrote: Tks for that. Well, then the ArrayList class in C# is somehow exactly Vector class in Java Yeah
Noogard wrote: Tks for that. Well, then the ArrayList class in C# is somehow exactly Vector class in Java
xtreme.net wrote:Dissapointed? I think ArrayList provides you with more flexibility and ease...
triplez wrote:For those using the C# 2.0, there's a new method for arrays called Resize. This method gave rise due to the power of generics.Here's how you use it.String[] myArr = { "The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog" };Array.Resize( ref myArr, myArr.Length + 5 );The method fingerprint is this.public static void Resize( T[] array, intnewSize);This only works in Whidbey.
Noogard wrote: triplez wrote:For those using the C# 2.0, there's a new method for arrays called Resize. This method gave rise due to the power of generics.Here's how you use it.String[] myArr = { "The", "quick", "brown", "fox", "jumps", "over", "the", "lazy", "dog" };Array.Resize( ref myArr, myArr.Length + 5 );The method fingerprint is this.public static void Resize( T[] array, intnewSize);This only works in Whidbey. Yeah, this is exactly what I want How can I check which version of C# I'm using? And what is Whidbey? And IDE? " />
knave wrote:C# is only available in .Net Framework 2.0, which is currently in Beta 1 (if I'm not wrong). Whidbey is the codename for the new version of Visual Studio 2005.