Exemple #1
0
        public override int GetHashCode()
        {
            int result = 1;

            result = (31 * result) + CanonicalCode.GetHashCode();
            result = (31 * result) + Description.GetHashCode();
            return(result);
        }
 public Bucket GetErrorBucket(CanonicalCode code)
 {
     return(errorBuckets[(int)code - 1]);
 }
 internal Status(CanonicalCode canonicalCode, string description = null)
 {
     this.CanonicalCode = canonicalCode;
     this.Description   = description;
 }
Exemple #4
0
 public static Status ToStatus(this CanonicalCode code)
 {
     return(new Status(code));
 }