DynamicMethod::DeclaringType Property
.NET Framework (current version)
Gets the type that declares the method, which is always null for dynamic methods.
Assembly: mscorlib (in mscorlib.dll)
Implements
_MemberInfo::DeclaringTypeThis property always returns null for dynamic methods. Even when a dynamic method is logically associated with a type, it is not declared by the type.
The following code example displays the declaring type of a dynamic method. This code example is part of a larger example provided for the DynamicMethod class.
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.1
Show: