XnorOperation Class

<< 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)

 

Syntax


public class XnorOperation : MultiInputOperation

 

Remarks


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.

 

Examples


The following example demonstrates how to use the XnorOperation class:

C#

var xnorOperation = new XnorOperation();

bool result = xnorOperation.Evaluate(true, false, true); // result will be false

 

Inheritance Hierarchy


Object
BNCS.Logic.Abstract.BaseLogicEntity
  BNCS.Logic.Abstract.GenericOperation
    BNCS.Logic.Abstract.MultiInputOperation
       BNCS.Logic.LogicOperations.XnorOperation

 

See Also


XnorOperation Members

BNCS.Logic.LogicOperations Namespace