OpenHome.Songcast.NegateBoolean.ConvertBack C# (CSharp) Method

ConvertBack() public method

public ConvertBack ( object aValue, Type aTargetType, object aParameter, System aCulture ) : object
aValue object
aTargetType System.Type
aParameter object
aCulture System
return object
        public object ConvertBack(object aValue, Type aTargetType, object aParameter, System.Globalization.CultureInfo aCulture)
        {
            if (aTargetType != typeof(bool))
            {
                throw new InvalidOperationException("The target must be a boolean");
            }

            return (!(bool)aValue);
        }