AdvancedLauncher.UI.Converters.ProfileNameConverter.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)
        {
            Profile profile = value as Profile;
            if (profile != null) {
                return string.Format("{0} ({1})", profile.Name, ConfigurationManager.GetConfiguration(profile.GameModel).Name);
            }
            return value;
        }
ProfileNameConverter