Пример #1
0
 public EqualityNode()
 {
     inlet1 = new ValueInlet <TValue>();
     inlet2 = new ValueInlet <TValue>();
     outlet = new PullValueOutlet <bool>(() => PEqualityComparer <TValue> .Default.Equals(inlet1.PullValue(), inlet2.PullValue()));
 }
Пример #2
0
        public VariableGetNode(IVariableDefinition <TValue> variableDefinition)
        {
            this.variableDefinition = variableDefinition;

            outlet = new PullValueOutlet <TValue>(variableDefinition.Getter);
        }