コード例 #1
0
ファイル: IParseResult.cs プロジェクト: wpmyj/c3
        /// <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);
        }
コード例 #2
0
ファイル: IParseResult.cs プロジェクト: wpmyj/c3
        /// <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);
        }