RuntimeOps.ExpandoPromoteClass Method (ExpandoObject, Object, Object)

 
Note: This API is now obsolete.

This API supports the product infrastructure and is not intended to be used directly from your code.

Promotes an Expando object from one class to a new class.

Namespace:   System.Runtime.CompilerServices
Assembly:  System.Core (in System.Core.dll)

[ObsoleteAttribute("do not use this method", true)]
public static void ExpandoPromoteClass(
	ExpandoObject expando,
	object oldClass,
	object newClass
)

Parameters

expando
Type: System.Dynamic.ExpandoObject

The Expando object.

oldClass
Type: System.Object

The old class of the Expando object.

newClass
Type: System.Object

The new class of the Expando object.

.NET Framework
Available since 4.0
Silverlight
Available since 4.0
Return to top
Show: