Archetype.PrototypalObject.TryBinaryOperation C# (CSharp) Method

TryBinaryOperation() public method

public TryBinaryOperation ( BinaryOperationBinder binder, object arg, object &result ) : bool
binder System.Dynamic.BinaryOperationBinder
arg object
result object
return bool
        public override bool TryBinaryOperation( BinaryOperationBinder binder, object arg, out object result )
        {
            if(!ReferenceEquals(Prototype, null))
            {
                if(Prototype.TryBinaryOperation(binder, arg, out result))
                {
                    return true;
                }
            }
            if ( TryBinaryOperationMissing == null )
            {
                result = null;
                return false;
            }
            return TryBinaryOperationMissing( binder, arg, out result );
        }