ConstructorBuilder.CallingConvention Property

Gets the calling convention for this constructor.

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

public override CallingConventions CallingConvention { get; }

Property Value

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

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.

Silverlight

Supported in: 5, 4, 3

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

Community Additions

ADD
Show: