Exemplo n.º 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]);
 }
Exemplo n.º 3
0
 internal Status(CanonicalCode canonicalCode, string description = null)
 {
     this.CanonicalCode = canonicalCode;
     this.Description   = description;
 }
Exemplo n.º 4
0
 public static Status ToStatus(this CanonicalCode code)
 {
     return(new Status(code));
 }