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;
     }
 }
Beispiel #4
0
 void Add(GenericParamConstraint gpc)
 {
     if (gpc == null)
     {
         return;
     }
     Add(gpc.Owner);
     Push(gpc.Constraint);
     Add(gpc.CustomAttributes);
 }
Beispiel #5
0
 internal static bool ContainsGenericParameter(GenericParamConstraint gpc)
 {
     return(gpc != null && ContainsGenericParameter(gpc.Constraint));
 }
Beispiel #6
0
 void Add(GenericParamConstraint gpc)
 {
     if (gpc == null)
         return;
     Add(gpc.Owner);
     Push(gpc.Constraint);
     Add(gpc.CustomAttributes);
 }
Beispiel #7
0
		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);
 }