public ConsoleProperties ToConsoleProperties() { ConsoleProperties consoleProperties = new ConsoleProperties(); foreach (PropertyInfo consoleSettingsProperty in typeof(ConsoleSettings).GetProperties()) { PropertyInfo consolePropertiesProperty = typeof(ConsoleProperties).GetProperty(consoleSettingsProperty.Name); if (consolePropertiesProperty.CanWrite) { consolePropertiesProperty.SetValue(consoleProperties, consoleSettingsProperty.GetValue(this)); } } for (int i = 0; i < COLOR_TABLE_SIZE; i++) { consoleProperties.ColorTable[i] = this.ColorTable[i]; } return(consoleProperties); }
private ShellLink() { _handle = new ShellLinkCoClass() as IPersistFile; ConsoleProperties = new ConsoleProperties(); }