static void InitializeApplication(string[] sysargs) { NArgsAnalyzer argsAnalyzers = new NArgsAnalyzer() { new CommandAnalyzer() { new FieldAnalyzer() } }; argsAnalyzers.IgnoreCases = true; argsAnalyzers.Analysis(sysargs); args = argsAnalyzers.ToObject <StartupArgs>(); }
static StartupArgs Initialize(string[] sysargs) { NArgsAnalyzer analyzer = new NArgsAnalyzer() { new CommandAnalyzer() { new SwitchAnalyzer(), new FieldAnalyzer(), }, }; analyzer.IgnoreCases = true; analyzer.Analysis(sysargs); return(analyzer.ToObject <StartupArgs>()); }