Document of c-modernization-kit (calc dotnet wrapper) 1.0.0
Loading...
Searching...
No Matches
CalcResult.cs
Go to the documentation of this file.
1#pragma warning disable 1587
17#pragma warning restore 1587
18
19namespace CalcLib
20{
24 public class CalcResult
25 {
29 public bool IsSuccess { get; }
30
35 public int Value { get; }
36
41 public int ErrorCode { get; }
42
49 internal CalcResult(bool isSuccess, int value, int errorCode)
50 {
51 IsSuccess = isSuccess;
52 Value = value;
53 ErrorCode = errorCode;
54 }
55 }
56}
計算演算の結果を表します。
Definition CalcResult.cs:25
bool IsSuccess
演算が成功したかどうかを示す値を取得します。
Definition CalcResult.cs:29
int Value
計算結果の値を取得します。 この値は IsSuccess が true の場合のみ有効です。
Definition CalcResult.cs:35
int ErrorCode
演算が失敗した場合のエラーコードを取得します。 0 (CALC_SUCCESS) は成功を、-1 (CALC_ERROR) は失敗を示します。
Definition CalcResult.cs:41