DynamicMethod.ReflectedType Property

Gets the class that was used in reflection to obtain the method.

Namespace:  System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

public override Type ReflectedType { get; }

Property Value

Type: System.Type
Always null.

This property always returns null for dynamic methods.

The following code example displays the reflected type of a dynamic method. This code example is part of a larger example provided for the DynamicMethod class.

// For dynamic methods, the reflected type is always null.
if (hello.ReflectedType == null)
   outputBlock.Text += "ReflectedType is null." + "\n";
   outputBlock.Text += String.Format("ReflectedType: {0}", hello.ReflectedType) + "\n";


Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions