在 .NET 的 ILOG 规则中设置属性值
当业务规则尝试设置集合(数组)元素的属性值时,在设置引擎的规则集时会引发 InvalidCastException
。
如果我们设置对象的属性值,则不会发生这种情况。如果我们设置也不会发生 使用方法的集合元素的属性。
如果应用程序逻辑和类库位于 C# 或 VB.NET 中,就会发生这种情况。
When a business rule tries to set a property value of an element of a collection (an array), an InvalidCastException
is raised when setting the ruleset of the engine.
This does not happen if we set the property value of an object. Neither it happens if we set
attribute of the elements of the collection using a method.
This happens both if the application logic and class libraries are in C# or in VB.NET.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论