A
Alex Sanchez.
Hi,
If I have this :
public struct SGPoint
{
public double X;
public double Y;
}
public struct SGRect
{
public SGPoint Emin;
public SGPoint Emax;
}
How do I define a constant ? Example:
public class SGGlobals
{
public const SGRect Extension = ????;
}
Also, I have this:
public struct PJUnits
{
public string id;
public double to_meter;
public string name;
}
then, how to define a constant array of x elements in:
public class SGGlobals
{
public const PJUnits [] punits = ???;
}
Thanks
Alex
If I have this :
public struct SGPoint
{
public double X;
public double Y;
}
public struct SGRect
{
public SGPoint Emin;
public SGPoint Emax;
}
How do I define a constant ? Example:
public class SGGlobals
{
public const SGRect Extension = ????;
}
Also, I have this:
public struct PJUnits
{
public string id;
public double to_meter;
public string name;
}
then, how to define a constant array of x elements in:
public class SGGlobals
{
public const PJUnits [] punits = ???;
}
Thanks
Alex