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);
        }
 public StringArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Example #3
0
 public BoolArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }
Example #4
0
 public IntArgMarshaler(ArgSpec spec)
 {
     _spec = spec;
 }