NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Defining a Constructor

A constructor is defined using the TypeBuilder.DefineConstructor method. DefineConstructor returns a ConstructorBuilder object. DefineConstructor requires the caller to specify the constructor attributes using the enum MethodAttributes.

The default constructor for a class is defined using the TypeBuilder.DefineDefaultConstructor method. DefineDefaultConstructor returns a ConstructorBuilder object. The default constructor simply calls the constructor of the parent class. The runtime will automatically define a default constructor for a class if the caller does not define a constructor for the class.

Attributes

Known Issues