/// <summary> /// Determines whether the specified /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> is equal to the /// current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>. /// </summary> /// <param name="config">The <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> to compare with /// the current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>.</param> /// <returns><c>true</c> if the specified /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> is equal to the /// current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>; otherwise, <c>false</c>.</returns> public Boolean Equals(MCPTerminalConfiguration config) { if (config == null) { return(false); } return((this._channel == config.Channel) && (this._channelEnabled == config.IsChannelEnabled) && (this._pinAEnabled == config.IsPinAEnabled) && (this._pinWEnabled == config.IsPinWEnabled) && (this._pinBEnabled == config.IsPinBEnabled)); }
/// <summary> /// Determines whether the specified <see cref="System.Object"/> is equal to the current /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>. /// </summary> /// <param name="obj"> /// The <see cref="System.Object"/> to compare with the current /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>. /// </param> /// <returns> /// <c>true</c> if the specified <see cref="System.Object"/> is equal to the current /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>; /// otherwise, <c>false</c>. /// </returns> public override bool Equals(object obj) { if (obj == null) { return(false); } MCPTerminalConfiguration config = obj as MCPTerminalConfiguration; if ((Object)config == null) { return(false); } return((this._channel == config.Channel) && (this._channelEnabled == config.IsChannelEnabled) && (this._pinAEnabled == config.IsPinAEnabled) && (this._pinWEnabled == config.IsPinWEnabled) && (this._pinBEnabled == config.IsPinBEnabled)); }
/// <summary> /// Determines whether the specified /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> is equal to the /// current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>. /// </summary> /// <param name="config">The <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> to compare with /// the current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>.</param> /// <returns><c>true</c> if the specified /// <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/> is equal to the /// current <see cref="CyrusBuilt.MonoPi.Components.Potentiometers.Microchip.MCPTerminalConfiguration"/>; otherwise, <c>false</c>.</returns> public Boolean Equals(MCPTerminalConfiguration config) { if (config == null) { return false; } return ((this._channel == config.Channel) && (this._channelEnabled == config.IsChannelEnabled) && (this._pinAEnabled == config.IsPinAEnabled) && (this._pinWEnabled == config.IsPinWEnabled) && (this._pinBEnabled == config.IsPinBEnabled)); }