AdvancedLauncher.UI.Converters.GameTypeToNameConverter.Convert C# (CSharp) Метод

Convert() публичный Метод

public Convert ( object value, Type targetType, object parameter, CultureInfo culture ) : object
value object
targetType System.Type
parameter object
culture System.Globalization.CultureInfo
Результат object
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            string gameType = value as string;
            if (gameType != null) {
                return ConfigurationManager.GetConfiguration(gameType).Name;
            }
            return value;
        }
GameTypeToNameConverter