Z
Zytan
This article:
http://www.c-sharpcorner.com/Upload...Arrays11142005060354AM/WorkingWithArrays.aspx
claims that "In C#, arrays can be declared as fixed length or
dynamic".
I don't believe he is correct. With the exception of collections /
arraylists, can you have a dynamically sized array in C#? Note that i
am aware of Array.Resize<type>(ref myArray, newsize); for resizing
arrays in .NET 2.0. Is there a way to resize the array dynamically,
as Mahesh Chand claims (but doesn't show) in his article?
It mentions the System.Array class, which does hav a IsFixedSize
property, so maybe I can use that to make an array that is dynamic in
size.
(I think Mahesh Chand's article was written quickly, because he claims
the binary search will work without requirement of sorting. I've seen
this in other tutorials for VB, as well. It's like these things are
just written in 5 minutes and posted. And I have to register and log
in to write a comment to help him correct it.)
Zytan
http://www.c-sharpcorner.com/Upload...Arrays11142005060354AM/WorkingWithArrays.aspx
claims that "In C#, arrays can be declared as fixed length or
dynamic".
I don't believe he is correct. With the exception of collections /
arraylists, can you have a dynamically sized array in C#? Note that i
am aware of Array.Resize<type>(ref myArray, newsize); for resizing
arrays in .NET 2.0. Is there a way to resize the array dynamically,
as Mahesh Chand claims (but doesn't show) in his article?
It mentions the System.Array class, which does hav a IsFixedSize
property, so maybe I can use that to make an array that is dynamic in
size.
(I think Mahesh Chand's article was written quickly, because he claims
the binary search will work without requirement of sorting. I've seen
this in other tutorials for VB, as well. It's like these things are
just written in 5 minutes and posted. And I have to register and log
in to write a comment to help him correct it.)
Zytan