Beispiel #1
0
 // real値の取得
 private float GetValFloat(CalcRule type, object val)
 {
     if (type == CalcRule.CalcInt)
     {
         return((float)(int)val);
     }
     else if (type == CalcRule.CalcReal)
     {
         return((float)val);
     }
     else
     {
         Debug.Assert(false);
         return(0);
     }
 }
Beispiel #2
0
 public void Deconstruct(out bool isSuccess, out CalcRule type, out object value)
 {
     isSuccess = IsSuccess;
     type      = Type;
     value     = Value;
 }
Beispiel #3
0
 public Result(bool isSuccess, CalcRule type, object value)
 {
     IsSuccess = isSuccess;
     Type      = type;
     Value     = value;
 }