Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Button[] c = new Button[255] (this);
出于某种原因,Xamarin Studio 要求我提供方法名称,并将我指向“新”一词的开头
var b = new Button[255]; b[0] = new Button(this);
您正在混合语法...您不能在一行中使用枚举器和方法调用...
Button[] c = new Button[255]; // Initialise an array of buttons, length 255. c[0] = new Button(this); // Add a new button to index 0 of the array.