|
<< Click to Display Table of Contents >> Navigation: Reference > BNCS.Logic.LogicOperations Namespace > XnorOperation Class |
Represents a logical XNOR (exclusive NOR) operation that can take multiple inputs.
Namespace: BNCS.Logic.LogicOperations
Assembly: BNCS.Logic (in BNCS.Logic.dll)
public class XnorOperation : MultiInputOperation
The XNOR operation is a logical operation that outputs true or 1 only when the number of true or 1 inputs is even. This class extends the MultiInputOperation class, allowing it to handle multiple input values.
The following example demonstrates how to use the XnorOperation class:
var xnorOperation = new XnorOperation();
bool result = xnorOperation.Evaluate(true, false, true); // result will be false
Object
BNCS.Logic.Abstract.BaseLogicEntity
BNCS.Logic.Abstract.GenericOperation
BNCS.Logic.Abstract.MultiInputOperation
BNCS.Logic.LogicOperations.XnorOperation
BNCS.Logic.LogicOperations Namespace