Exemplo n.º 1
0
 /// <summary>
 /// Initialises an instance of the PropertyDef with the specified details.
 /// </summary>
 /// <param name="definingAssembly">The assembly in which the property is defined.</param>
 /// <param name="name">The name of the property</param>
 /// <param name="containingType">The type that the property is defined in.</param>
 public PropertyDef(AssemblyDef definingAssembly, string name, TypeDef containingType)
 {
     UniqueId    = definingAssembly.CreateUniqueId();
     Assembly    = definingAssembly;
     Name        = name;
     _owningType = containingType;
 }
Exemplo n.º 2
0
 public EventDef(string name, AssemblyDef definingAssembly, TypeDef containingType)
 {
     Name            = name;
     Assembly        = definingAssembly;
     UniqueId        = definingAssembly.CreateUniqueId();
     _containingType = containingType;
 }