// 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); } }
public void Deconstruct(out bool isSuccess, out CalcRule type, out object value) { isSuccess = IsSuccess; type = Type; value = Value; }
public Result(bool isSuccess, CalcRule type, object value) { IsSuccess = isSuccess; Type = type; Value = value; }