예제 #1
0
        public static T Parse <T>(params string[] args) where T : new()
        {
            var t      = new T();
            var parser = new ToolArgsParser(t);

            parser.Parse(args);
            return(t);
        }
예제 #2
0
        public static void ParseInto(object obj, string args)
        {
            var parser = new ToolArgsParser(obj);

            parser.Parse(args);
        }