CalDavSynchronizer.Ui.Options.Views.BooleanNotConverter.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 object Convert (object value, Type targetType, object parameter, CultureInfo culture)
    {
      if (targetType != typeof (bool))
        throw new ArgumentException();

      if (value is bool)
        return !(bool) value;
      return Binding.DoNothing;
    }
BooleanNotConverter