コード例 #1
0
        Result(SerializationInfo info, StreamingContext context)
        {
            bool   isFailure = info.GetBoolean("IsFailure");
            string error     = isFailure ? info.GetString("Error") : null;

            _logic = ResultCommonLogic.Create(isFailure, error);
        }
コード例 #2
0
 private Result(bool isFailure, string error)
 {
     _logic = ResultCommonLogic.Create(isFailure, error);
 }