/// <summary> /// /// </summary> /// <param name="remain"></param> /// <returns></returns> static public UploadParseResult CreateFailUploadParseResult(byte[] remain) { UploadParseResult r = new UploadParseResult(); r.IsSuccess = false; r.Remain = remain; return(r); }
/// <summary> /// /// </summary> /// <param name="name"></param> /// <param name="remain"></param> /// <returns></returns> static public UploadParseResult CreateSuccessUploadParseResult(string name, KeyValueCollection keyValues, byte[] remain) { UploadParseResult r = new UploadParseResult(); r.IsSuccess = true; r.Name = name; r.Remain = remain; r.Results = keyValues; return(r); }