Exemple #1
0
        public new static ValueResult <T> AsError(string error)
        {
            var result = new ValueResult <T>();

            result.Messages.AddError(error);
            return(result);
        }
Exemple #2
0
        public new static ValueResult <T> AsError(Exception exc)
        {
            var result = new ValueResult <T>();

            result.Messages.AddError(exc);
            return(result);
        }
Exemple #3
0
 public ValueResult(ValueResult <T> other)
     : base(other)
 {
     Value = other.Value;
 }