Windows Phone Developers

Showing posts with label C# fixed size buffer. Show all posts
Showing posts with label C# fixed size buffer. Show all posts

Sunday, August 24, 2008

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

An array was declared incorrectly. Be aware that the syntax for a fixed size buffer is different from that of an array. - Compiler Error CS0650

Wrong Declaration

char CopiedString[];

char[] CopiedString;

Correct Declaration

char[] CopiedString = new char[3];

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.

Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon