1
Vote

Behaviors cannot support Unary Operations

description

In ClayMetaObject, unary operations are never bound, a NotImplementedException is thrown:
    public override DynamicMetaObject BindUnaryOperation(UnaryOperationBinder binder) {
        Logger.Log(LogLevel.Debug, null, "BindUnaryOperation");

        throw new NotImplementedException();
    }
This means we can't write behaviors to respond to, e.g. if (Model.Foo) { }

comments