Пример #1
0
 /// <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;
     }
 }
Пример #2
0
 private void Add(GenericParamConstraint gpc)
 {
     if (gpc == null)
     {
         return;
     }
     Add(gpc.Owner);
     Push(gpc.Constraint);
     Add(gpc.CustomAttributes);
 }
Пример #3
0
 private void Load(GenericParamConstraint obj)
 {
     if (obj == null)
     {
         return;
     }
     Add(obj.Owner);
     Add(obj.Constraint);
     Add(obj.CustomAttributes);
 }
Пример #4
0
 internal static bool ContainsGenericParameter(GenericParamConstraint gpc)
 {
     return(gpc != null && ContainsGenericParameter(gpc.Constraint));
 }