示例#1
0
        public static void InitializeProcess()
        {
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Console.Title = "vm_host";
            }
            IntConverter.Register <char>();

            Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                Console.OutputEncoding = Encoding.Unicode;
            }
        }
示例#2
0
 public void Setup() => IntConverter.Register <char>();