internal static CustomAttribute Clone(CustomAttribute custattr, ImportContext context) { CustomAttribute ca = new CustomAttribute(context.Import(custattr.Constructor)); custattr.CopyTo(ca); return(ca); }
internal static CustomAttribute Clone(CustomAttribute custattr, ModuleDefinition context) { var ca = new CustomAttribute(context.Import(custattr.Constructor)); custattr.CopyTo(ca, context); return(ca); }
public static CustomAttribute Clone(CustomAttribute custattr, ModuleDefinition context, IImportMapper mapper) { var ca = new CustomAttribute(context.Import(custattr.Constructor, mapper)); custattr.CopyTo(ca, context, mapper); return ca; }
public bool Resolve() { if (Resolved) { return(true); } ReflectionReader r = m_ctor.DeclaringType.Module.Controller.Reader; CustomAttribute newCa = r.GetCustomAttribute(m_ctor, Blob, true); if (!newCa.Resolved) { return(false); } newCa.CopyTo(this); return(true); }
internal static CustomAttribute Clone (CustomAttribute custattr, ImportContext context) { CustomAttribute ca = new CustomAttribute (context.Import (custattr.Constructor)); custattr.CopyTo (ca); return ca; }
internal static CustomAttribute Clone(CustomAttribute custattr, ModuleDefinition context) { var ca = new CustomAttribute(context.ImportReference(custattr.Constructor)); custattr.CopyTo(ca, context); return ca; }