This page has moved. You will be automatically redirected to its new location in 10 seconds. If you aren't forwarded to the new page, click here.

Search This Blog

Thursday, January 14, 2010

Bad array declarator: To declare a managed array the rank specifier precedes the variable's identifier. To declare a fixed size buffer field, use the fixed keyword before the field type

Wrong Declaration

char CopiedString[];

char[] CopiedString;

Correct Declaration

char[] CopiedString = new char[3];

char[] CopiedString = xyz;

http://dotnetdud.blogspot.com/2008/08/bad-array-declarator-to-declare-managed.html

No comments:

Post a Comment