When editing the last array in an array[][][], all values of that array will be reset to default. (In a int[3], it will become {0, 0, 0}).
I have attached a video to make the issue more clear.
Here's the code I used in the video:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
PropertyGrid.SelectedObject = new MyClass();
}
}
public class MyClass
{
public MyClass()
{
MyArray = new double[1][][];
MyArray[0] = new double[1][];
MyArray[0][0] = new double[1];
MyArray[0][0][0] = 123;
}
public double[][][] MyArray { get; set; }
}
This was tested in version 2.8.0 of the toolkit because newer versions have a null reference error.
I have attached a video to make the issue more clear.
Here's the code I used in the video:
public partial class MainWindow : Window
{
public MainWindow()
{
InitializeComponent();
PropertyGrid.SelectedObject = new MyClass();
}
}
public class MyClass
{
public MyClass()
{
MyArray = new double[1][][];
MyArray[0] = new double[1][];
MyArray[0][0] = new double[1];
MyArray[0][0][0] = 123;
}
public double[][][] MyArray { get; set; }
}
This was tested in version 2.8.0 of the toolkit because newer versions have a null reference error.