예제 #1
0
 protected NullSelectionResult(OperationStatus status) :
     base(status)
 {
 }
예제 #2
0
 public ErrorSelectionResult(OperationStatus status) :
     base(status.MakeFail())
 {
 }
예제 #3
0
        protected SelectionResult(OperationStatus status)
        {
            // Contract.ThrowIfNull(status);

            this.Status = status;
        }
 public static bool Failed(this OperationStatus status)
 {
     return(status.Flag.Failed());
 }
 public static bool FailedWithNoBestEffortSuggestion(this OperationStatus status)
 {
     return(status.Flag.Failed() && !status.Flag.HasBestEffort());
 }
 public static bool Succeeded(this OperationStatus status)
 {
     return(status.Flag.Succeeded());
 }
예제 #7
0
 public FailedExtractMethodResult(OperationStatus status)
     : base(status.Flag, status.Reasons, null, default(SyntaxToken), default(SyntaxNode))
 {
 }