Exemplo n.º 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);
        }
Exemplo n.º 2
0
 public StringArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Exemplo n.º 3
0
 public BoolArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Exemplo n.º 4
0
 public IntArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }