Share via


ConstructorBuilder.CallingConvention Property

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Gets the calling convention for this constructor.

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

Syntax

'Declaration
Public Overrides ReadOnly Property CallingConvention As CallingConventions
public override CallingConventions CallingConvention { get; }

Property Value

Type: System.Reflection.CallingConventions
CallingConventions.HasThis if the declaring type is generic; otherwise, CallingConventions.Standard.

Remarks

When you make a dynamic type generic by calling the TypeBuilder.DefineGenericParameters, the calling convention of any constructors that have already been defined is changed from CallingConventions.Standard to CallingConventions.HasThis.

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.