I want to have simply structure for store information. My problem is to create inner method that clear stored values.
public struct GraphValues
{
public int min, max, ...;
public GraphValues(int min, int max, ...)
{
this.min = min;
this.max = max;
...
}
public static void Clear(this GraphValues values)
{
values.min.Equals(null);
values.max.Equals(null);
...
}
}
So write new values in this structure is OK,
GraphValues val = new GraphValues()
val.max = 12;
val.min = 1;
but I want to set all structure valueas to null. Calling something like
val.Clear();
Any idea? Thnaks