Пример #1
0
        public static IArgMarshaler Get(ArgSpec spec)
        {
            if (spec.Type == typeof(bool))
            {
                return(new BoolArgMarshaler(spec));
            }
            else if (spec.Type == typeof(string))
            {
                return(new StringArgMarshaler(spec));
            }
            else if (spec.Type == typeof(int))
            {
                return(new IntArgMarshaler(spec));
            }

            return(null);
        }
Пример #2
0
 public StringArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Пример #3
0
 public BoolArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Пример #4
0
 public IntArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }