AmazedSaint.Elastic.Lib.ElasticObject.TryUnaryOperation C# (CSharp) Method

TryUnaryOperation() public method

Try the unary operation.
public TryUnaryOperation ( UnaryOperationBinder binder, object &result ) : bool
binder System.Dynamic.UnaryOperationBinder
result object
return bool
        public override bool TryUnaryOperation(UnaryOperationBinder binder, out object result)
        {
            if (binder.Operation == ExpressionType.OnesComplement)
            {
                result = (nodeType == NodeType.Element) ? InternalContent : InternalValue;
                return true;
            }

            return base.TryUnaryOperation(binder, out result);
        }