Esempio n. 1
0
 static public CustomAttribute AddCustomAttributeOfType(this TypeDefinition item, TypeReference type)
 {
     return(item.AddCustomAttributeWithConstructor(
                item.GetModuleDefinition().Import(type.Resolve().GetConstructor())
                ));
 }