BaconographyW8.Converters.BooleanToZeroBasedIndexConverter.ConvertBack C# (CSharp) Method

ConvertBack() public method

public ConvertBack ( object value, Type targetType, object parameter, string language ) : object
value object
targetType System.Type
parameter object
language string
return object
        public object ConvertBack(object value, Type targetType, object parameter, string language)
        {
            if (value is Nullable<int>)
            {
                return ((int)value) == 0 ? true : false;
            }
            else
                return true;
        }
    }
BooleanToZeroBasedIndexConverter