I have a strange problem.
I have defined a windows component class in which there is a float [] private member like this:


private float [] m_Directions = new float[] {0,1,2};

Then I have created a property for setting and retrieving values of such a member, with designer support, like this:

[
Browsable(true),
Category("Blend settings")
]
public float[] Directions
{
get
{
return m_directions;
}
set
{
m_directions = value;
}
}

When I am in design mode, setting of float[] goes well, (and I find updated values in InitializeComponent() method. Correct!

When I shutdown .NET Devenv and then reopen my project, designer doesn't load
the last values for m_Directions array, but the old ones {0,1,2}. Why?
Is there a way to tell designer to load values from InitializeComponent() method?

Any idea?
thank you very much in advance!

JIT