Unlimited Technique          Unlimited Wisdom

1001010000101001000010010001000010000101101110111 1101010010010101011110010101110101011010101010101

导航

Define the constructor of the class through the TypeBuilder

  In TypeBuilder you can use two method to define the constructor of the Type(class): DefineDefaultConstructor and DefineConstructor .
     DefineDefaultConstructor  generates a default constructor. There aren't any codes except for the code of invoking the default constructor of the parent class(no parameter) in the constructor. You can’t add any codes to the constructor, namely the
ILGenerator can’t be invoked in the default constructor.
   DefineConstructor generates a common constructor. Any codes can be added to the constructor.

posted on 2005-07-13 13:44  bughole  阅读(264)  评论(0)    收藏  举报