示例#1
0
 public ParamItem(string name, string val, DataType dataType, InOutFlag flag)
 {
     this.name     = name;
     this.val      = val;
     this.dataType = dataType;
     this.flag     = flag;
 }
        private ParameterDirection initInOut(InOutFlag flag)
        {
            switch (flag)
            {
            case InOutFlag.IN:
                return(ParameterDirection.Input);

            case InOutFlag.OUT:
                return(ParameterDirection.Output);

            case InOutFlag.INOUT:
                return(ParameterDirection.InputOutput);

            case InOutFlag.RETURNVAL:
                return(ParameterDirection.ReturnValue);

            default:
                return(ParameterDirection.Input);
            }
        }
示例#3
0
 /// <summary>
 /// 新增参数,指定各项参数类型
 /// </summary>
 /// <param name="name"></param>
 /// <param name="val"></param>
 /// <param name="dataType"></param>
 /// <param name="flag"></param>
 /// <param name="len"></param>
 public void Add(string name, string val, DataType dataType, InOutFlag flag, int len)
 {
     paramItems.Add(new ParamItem(name, val, dataType, flag, len));
 }