static void Main(string[] args) { //Disable URI Interning as this will otherwise cause us to use way too much //memory when doing large streaming conversions Options.InternUris = false; //Also turn off UTF-8 BOM by default for maximum compatibility and portability //of the data we output Options.UseBomForUtf8 = false; //Set Console Output Encoding to UTF-8 Console.OutputEncoding = Encoding.UTF8; // Set use of TLS 1.2 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; if (args.Length >= 1 && args[0].Equals("-rapper")) { RapperConvert rapper = new RapperConvert(); rapper.RunConvert(args.Skip(1).ToArray()); } else { RdfConvert converter = new RdfConvert(); converter.RunConvert(args); } }
static void Main(string[] args) { Console.OutputEncoding = Encoding.UTF8; if (args.Length >= 1 && args[0].Equals("-rapper")) { RapperConvert rapper = new RapperConvert(); rapper.RunConvert(args.Skip(1).ToArray()); } else { RdfConvert converter = new RdfConvert(); converter.RunConvert(args); } }