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