Monobjc.AppKit.NSCellStateValueExtensions.ToNSCellStateValue C# (CSharp) Method

ToNSCellStateValue() public static method

Convert a boolean to a NSCellStateValue value.
public static ToNSCellStateValue ( this value ) : NSCellStateValue
value this
return NSCellStateValue
        public static NSCellStateValue ToNSCellStateValue(this bool value)
        {
            return value ? NSCellStateValue.NSOnState : NSCellStateValue.NSOffState;
        }
    }
NSCellStateValueExtensions