What is IExpando and where is it used?

I was looking at types in mscorlib using a reflector (like you ...) and came across an IExpando interface on a .Runtime.InteropServices.Expando system.

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

Has anyone implemented this interface in their own code?

Does anyone know what it is used for?

thanks

+4
source share
2 answers

Yes, today it is a little inappropriate. This is a managed declaration of type COM interface. Also, check out ComTypes.IExpando and InteropServices.UCOMIExpando. The main interfaces for runtime scripts for implementing property packages. In particular, for Javascript, check this thread .

Microsoft had high hopes for JScript, it was the main language supported on the side of C #, VB.NET and Managed C ++. This did not work.

Forgotten, but not completely dead. ExpandoObject Class Returns to .NET 4.0

+5
source

This is the .NET version of COM IDispatchEx ability to dynamically add items.

See http://blogs.msdn.com/b/shrib/archive/2007/09/04/ireflect-and-idispatch.aspx

+2
source

All Articles