IronPython的 - 命名参数构造器 [英] Ironpython - Named parameters to constructor

查看:147
本文介绍了IronPython的 - 命名参数构造器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我创建我的C#类的IronPython与命名参数的构造函数的一个实例,它被设置相应的参数的名称属性。我希望禁止这种行为,所以我可以有属性的计算顺序上更好的控制。

When I create an instance of my C# class in IronPython with named parameters to the constructor, it is setting properties corresponding to the names of the parameters. I wish to disable this behavior so I can have better control on the order the properties are evaluated.

这可能吗?

推荐答案

有没有办法关闭这个功能,而无需修改IronPython的。

There's no way to turn this off without modifying IronPython.

这篇关于IronPython的 - 命名参数构造器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆