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