在 .NET 的 ILOG 规则中设置属性值

发布于 2024-11-03 11:16:45 字数 182 浏览 6 评论 0原文

当业务规则尝试设置集合(数组)元素的属性值时,在设置引擎的规则集时会引发 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文