I created a new Windows application and added the following source...
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace TestBug
{
public partial class MainForm : Form
{
int[,] numbers;
public MainForm()
{
numbers = new int[2,2];
InitializeComponent();
}
}
}
I switch to the design view, changed something, saved, returned to the source view, and my source looked like this:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
namespace TestBug
{
public partial class MainForm : Form
{
int[ ] numbers; // <---- no space between the brackets
public MainForm()
{
numbers = new int[2,2];
InitializeComponent();
}
}
}
I have been able to repeat this with properties of various types and access levels, and it will happen with all two-deminsional array properties in the class. It also occurs whether I change the design in MainForm.cs or MainForm.Designer.cs
SharpDevelop Version : 3.0.0.3800
.NET Version : 2.0.50727.3074
OS Version : Microsoft Windows NT 6.0.6001 Service Pack 1
Current culture : English (United States) (en-US)
Working Set Memory : 136080kb
GC Heap Memory : 34451kb