コード例 #1
0
        public ApiParameter Exec2ApiParameter <TResult>(string cmd, BaseTransfer transfer)
        {
            TResult rlt     = Exec <TResult>(cmd);
            string  rltStr  = null;
            string  rltType = typeof(TResult).FullName;

            if (rlt != null)
            {
                rltType = rlt.GetType().FullName;
                rltStr  = transfer.ToText(rlt);
            }
            return(new ApiParameter()
            {
                TypeName = rltType, Serializer = transfer.GetType().FullName, Value = rltStr
            });
        }
コード例 #2
0
        public string Exec2String <TResult>(string cmd, BaseTransfer transfer)
        {
            TResult rlt = Exec <TResult>(cmd);

            return(transfer.ToText(rlt));
        }