示例#1
0
 /// <summary>
 /// </summary>
 /// <param name="genericResultCode"></param>
 /// <param name="code"></param>
 /// <param name="description"></param>
 public GenericResult(GenericResultCodes genericResultCode, int code, string description)
 {
     GenericResultCode = genericResultCode;
     Code        = code;
     Description = description;
     SubResults  = new List <IGenericResult>();
 }
示例#2
0
 /// <summary>
 /// </summary>
 /// <param name="genericResultCode"></param>
 public GenericResult(GenericResultCodes genericResultCode)
     : this(genericResultCode, genericResultCode == GenericResultCodes.SUCCESS ? 0 : 1)
 {
     GenericResultCode = genericResultCode;
 }
示例#3
0
 /// <summary>
 /// </summary>
 /// <param name="genericResultCode"></param>
 /// <param name="code"></param>
 public GenericResult(GenericResultCodes genericResultCode, int code)
     : this(genericResultCode, code, genericResultCode.ToString())
 {
     GenericResultCode = genericResultCode;
 }