ChatterBox.Client.Presentation.Shared.Converters.NegatedBoolConverter.Convert C# (CSharp) Method

Convert() public method

public Convert ( object value, Type targetType, object parameter, string language ) : object
value object
targetType System.Type
parameter object
language string
return object
        public object Convert(object value, Type targetType, object parameter, string language)
        {
            if (!(value is bool))
                throw new ArgumentException(string.Format("The value converted is not of type {0}", typeof (bool).Name));
            return !(bool) value;
        }
NegatedBoolConverter