Exemple #1
0
 /// <summary>
 /// Creates a new method body.
 /// </summary>
 /// <param name="owner">The method that owns the method body.</param>
 public CilMethodBody(MethodDefinition owner)
 {
     Owner = owner;
     Instructions = new CilInstructionCollection(this);
 }
Exemple #2
0
 /// <summary>
 /// Creates a new method body.
 /// </summary>
 /// <param name="owner">The method that owns the method body.</param>
 public CilMethodBody(MethodDefinition owner)
     : base(owner)
 {
     Instructions = new CilInstructionCollection(this);
 }