"Annoyed Programmer" <Annoyed
Programmer@discussions.microsoft.com> escreveu
na mensagem news:33244709-AFEB-4921-AB2D-DF5E04F89624@microsoft.com...[color=blue]
> Maybe this question has been addressed before, but I just stumbled with
> the
> issue so I'll post it here.
>
> Since I can remember array declaration in any language I've[/color]
[color=blue]
> worked(Basic/VB/VB.NET/C/C++) was:[/color]
Wrong.
C/C++/Java use the number of elements.
[color=blue]
>
> (Example in Basic-way)
>
> Dim Arr('UpperBound') as Type
> Ex. Dim Arr(0) as String gives you a String Array with 1 element
>
> But in C# string arr[0] gives you 0 elements, meaning the syntax is now
>
> Type Arr('Count');
>
> I'll like to know who though it would be a wonderful thing to break the
> natural flow of thought by doing this in C# while all the remaining .NET
> languages (with the possible exception of J# which I haven't tried) use
> the
> UpperBound declaration type.
>
> To me declare an array using count just seems counter-intuitive,[/color]
[color=blue]
>maybe it's > just me.[/color]
I think so.
[color=blue]
>
> Would like to hear your comments, for me this is an issue which should be
> corrected.[/color]
No way.