Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
TypeBuilder.DeclaringMethod Property
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Gets the method that declared the current generic type parameter.
Namespace: System.Reflection.Emit
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Public Overrides ReadOnly Property DeclaringMethod As MethodBase
public override MethodBase DeclaringMethod { get; }
Property Value
Type: System.Reflection.MethodBase
The method that declared the current type, if the current type is a generic type parameter; otherwise, nulla null reference (Nothing in Visual Basic).
Remarks
| NoteNote: |
|---|
When emitting code, a generic type parameter is represented by a GenericTypeParameterBuilder object rather than by a TypeBuilder object. |
Version Information
Silverlight
Supported in: 5, 4, 3
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.