什么是IExpando并在使用它? [英] What is IExpando and where is it used?

查看:268
本文介绍了什么是IExpando并在使用它?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用反光浏览类型mscorlib程序(像你这样做......),并遇到了的 IExpando接口,在System.Runtime.InteropServices.Expando命名空间。

I was browsing the types in mscorlib using reflector (like you do...) and came across the IExpando interface, in the System.Runtime.InteropServices.Expando namespace.

我做的反射搜索,甚至检查了MSDN,似乎没有任何类型的mscorlib中实现此接口。也有MSDN上没有code的例子。

I did a search in reflector and even checked out MSDN, it seems that no types in mscorlib implement this interface. There are also no code examples on MSDN.

有没有人实现了这个接口在自己的code?

Has anyone implemented this interface in their own code?

有谁知道它是干什么用的到底是什么?

Does anyone know what it is used for exactly?

感谢

推荐答案

是的,这是一个有点外的地方,今天。这是COM接口类型的管理声明。另外present,注意ComTypes.IExpando和InteropServices.UCOMIExpando。对于脚本运行时的核心接口来实现财产袋。特别是对于使用Javascript,请此线程

Yeah, it is a bit out-of-place today. It is the managed declaration of the COM interface type. Also present, note ComTypes.IExpando and InteropServices.UCOMIExpando. Core interfaces for scripting runtimes to implement property bags. In particular for Javascript, check this thread.

微软寄予厚望的JScript中,这是一个主要的语言支持沿侧的C#,VB.NET和托管C ++。那没有发挥出来。

Microsoft had high hopes for JScript, it was a primary language supported along-side C#, VB.NET and Managed C++. That didn't work out.

被遗忘,但并不完全死了。该ExpandoObject类是早在.NET 4.0

Forgotten, but not quite dead. The ExpandoObject class is back in .NET 4.0

这篇关于什么是IExpando并在使用它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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