public GenericParamConstraint CopyTo(GenericParamConstraint gpc) { gpc.Constraint = this.TypeDefOrRef; gpc.CustomAttributes.Clear(); gpc.CustomAttributes.AddRange(CustomAttributes); return gpc; }
void Load(GenericParamConstraint obj) { if (obj == null) return; Add(obj.Owner); Add(obj.Constraint); Add(obj.CustomAttributes); }
/// <inheritdoc/> internal override void OnLazyAdd2(int index, ref GenericParamConstraint value) { if (value.Owner != this) { // More than one owner... This module has invalid metadata. value = readerModule.ForceUpdateRowId(readerModule.ReadGenericParamConstraint(value.Rid, GetGenericParamContext(owner)).InitializeAll()); value.Owner = this; } }
void Add(GenericParamConstraint gpc) { if (gpc == null) { return; } Add(gpc.Owner); Push(gpc.Constraint); Add(gpc.CustomAttributes); }
internal static bool ContainsGenericParameter(GenericParamConstraint gpc) { return(gpc != null && ContainsGenericParameter(gpc.Constraint)); }
void Add(GenericParamConstraint gpc) { if (gpc == null) return; Add(gpc.Owner); Push(gpc.Constraint); Add(gpc.CustomAttributes); }
internal static bool ContainsGenericParameter(GenericParamConstraint gpc) { return gpc != null && ContainsGenericParameter(gpc.Constraint); }
public TypeDefOrRefAndCAOptions(GenericParamConstraint gpc) { this.TypeDefOrRef = gpc.Constraint; this.CustomAttributes.AddRange(gpc.CustomAttributes); }