I have this piece of code:
VB code:
Dim moniker As IMoniker() = New IMoniker(0) {}
Is this an array initlialized with length 0?
Is it right to "translate" it as:
C# code:
IMoniker[] moniker = new IMoniker[0];
?
I'm translating a program, and there's an error happening when using that moniker. It works fine with VB, but not with C#, and I guess the error is in the declaration.
Edit: I tried to change to:
C# code:
IMoniker[] moniker = new IMoniker[1];
I'm not sure about that 0 in the VB code. Is that the length or just an index? I'd appreciate a little info about that.