public TestClassWithCtor(double d, int i, string s, DateTime dt, NegZeroPos en) { D = d; I = i; S = s; Dt = dt; En = en; }
public TestStructWithCtor(double d, int i, string s, DateTime dt, NegZeroPos en) { _d = d; _i = i; _s = s; _dt = dt; _en = en; }
public static Complex MakeAComplexFromEnums(NegZeroPos real, NegZeroPos img) { return(new Complex(MakeADoubleFromEnum(real), MakeADoubleFromEnum(img))); }
public static double MakeADoubleFromEnum(NegZeroPos e) { return((e == NegZeroPos.Negative) ? -1 : (e == NegZeroPos.Positive) ? 1 : 0); }