/// <summary> /// Checks whether the system is capable of a certain function /// </summary> /// <param name="capability"> /// The capability being checked /// </param> /// <returns> /// Whether or not the system is capable of the function being tested /// </returns> public bool IsCapable(CapabilityOptions capability) { var mask = (ushort)capability; if ((this.Capabilities & mask) != 0) { return(true); } return(false); }
/// <summary> /// Checks whether the specified function has been enabled on the system /// </summary> /// <param name="capability"> /// The capability being checked /// </param> /// <returns> /// Whether or not the specified function is enabled /// </returns> public bool IsEnabled(CapabilityOptions capability) { ushort mask = (ushort)capability; if ((Enabled & mask) != 0) { return(true); } else { return(false); } }
public bool IsEnabled(CapabilityOptions capability) { ushort num = (ushort)capability; return((this.Enabled & num) != 0); }
public bool IsCapable(CapabilityOptions capability) { ushort num = (ushort)capability; return((this.Capabilities & num) != 0); }
public bool IsEnabled(CapabilityOptions capability) { ushort num = (ushort) capability; return ((this.Enabled & num) != 0); }
public bool IsCapable(CapabilityOptions capability) { ushort num = (ushort) capability; return ((this.Capabilities & num) != 0); }
/// <summary> /// Checks whether the specified function has been enabled on the system /// </summary> /// <param name="capability"> /// The capability being checked /// </param> /// <returns> /// Whether or not the specified function is enabled /// </returns> public bool IsEnabled(CapabilityOptions capability) { ushort mask = (ushort)capability; if ((Enabled & mask) != 0) { return true; } else { return false; } }