Ejemplo n.º 1
0
 public MetadataReferenceSetOwnershipRegistration(MetadataBase owner, MetadataReferenceSetBase set)
 {
     owner.EnsureNotNull(nameof(owner));
     set.EnsureNotNull(nameof(set));
     //
     _helpFlags = 0;
     _owner     = owner;
     _set       = set;
     set.SetOwnershipRegistration(registration: this);
 }
Ejemplo n.º 2
0
 protected override void Dispose(bool explicitDispose)
 {
     if (explicitDispose && IsRegistrationCompleted)
     {
         _set?.Dispose();
     }
     _set   = null;
     _owner = null;
     //
     base.Dispose(explicitDispose);
 }