B
boxim
got some static props in some classes
some of the props need to refer to other static members of the other classes
however, cos they're not simple types, cant use const, have to use readonly
how do i ensure that they're initialised in a particular order
e.g.
class one { public static readonly MyType Val1 = new MyType("hmmm"); }
class two { public static readonly MyType Val2 = new
MyType(one.Val1.GetTheString); }
two is reliant on one.Val1 being initialised
any ideas?
tia
sam martin
some of the props need to refer to other static members of the other classes
however, cos they're not simple types, cant use const, have to use readonly
how do i ensure that they're initialised in a particular order
e.g.
class one { public static readonly MyType Val1 = new MyType("hmmm"); }
class two { public static readonly MyType Val2 = new
MyType(one.Val1.GetTheString); }
two is reliant on one.Val1 being initialised
any ideas?
tia
sam martin