Result(SerializationInfo info, StreamingContext context) { bool isFailure = info.GetBoolean("IsFailure"); string error = isFailure ? info.GetString("Error") : null; _logic = ResultCommonLogic.Create(isFailure, error); }
private Result(bool isFailure, string error) { _logic = ResultCommonLogic.Create(isFailure, error); }