gpt4 book ai didi

c# - 是否有 C# 版本的 CTypeDynamic?

转载 作者:太空狗 更新时间:2023-10-29 23:18:59 25 4
gpt4 key购买 nike

来自文档:

The CTypeDynamic method applies dynamic conversions in accordance with the conversion semantics defined by the object itself. If a dynamic object inherits from DynamicObject, the CTypeDynamic method first attempts to perform the conversion by using a user-defined, static conversion. If the user-defined, static conversion fails, the CTypeDynamic method attempts to perform the conversion by using dynamic conversions. If a dynamic object implements IDynamicMetaObjectProvider, the CTypeDynamic method gives precedence to dynamic conversions over user-defined, static conversions.

C# 中有什么东西可以做到这一点吗?或者我只需要导入包含它的 VB 库。

最佳答案

如果您使用 C# 4.0,那么是的,称为动态。 Here is the link

关于c# - 是否有 C# 版本的 CTypeDynamic?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3231559/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com