protected override void ClearIdentifier()
 {
     lock (this.SyncObject)
         if (this.uniqueIdentifier != null)
         {
             this.uniqueIdentifier = null;
         }
 }
Beispiel #2
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (this.uniqueIdentifier != null)
         {
             this.uniqueIdentifier = null;
         }
         if (this.metadata != null)
         {
             this.metadata = null;
         }
         if (this.canRead)
         {
             this.canRead = false;
         }
         if (this.getMethod != null)
         {
             this.getMethod.Dispose();
             this.getMethod = null;
         }
         if (this.canWrite)
         {
             this.canWrite = false;
         }
         if (this.setMethod != null)
         {
             this.setMethod.Dispose();
             this.setMethod = null;
         }
         if (this.implementationTypes != null)
         {
             this.implementationTypes.Dispose();
             this.implementationTypes.Clear();
             this.implementationTypes = null;
         }
         this.propertyType = null;
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
 protected override void Dispose(bool disposing)
 {
     try
     {
         lock (this.SyncObject)
         {
             if (this.uniqueIdentifier != null)
             {
                 this.uniqueIdentifier = null;
             }
             if (this.metadata != null)
             {
                 this.metadata = null;
             }
             if (this.canRead)
             {
                 this.canRead = false;
             }
             if (this.getMethod != null)
             {
                 this.getMethod.Dispose();
                 this.getMethod = null;
             }
             if (this.canWrite)
             {
                 this.canWrite = false;
             }
             if (this.setMethod != null)
             {
                 this.setMethod.Dispose();
                 this.setMethod = null;
             }
             this.propertyType = null;
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }
Beispiel #4
0
 internal EventMember(IStructType parent, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier, ICliMetadataEventTableRow metadataEntry)
     : base(parent, metadataEntry, uniqueIdentifier)
 {
 }
Beispiel #5
0
 internal CtorMember(IStructType parent, ICliMetadataMethodDefinitionTableRow metadataEntry, _ICliManager identityManager, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry, identityManager, uniqueIdentifier)
 {
 }
Beispiel #6
0
 internal IndexerMember(IStructType parent, ICliMetadataPropertyTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry, uniqueIdentifier)
 {
 }
Beispiel #7
0
 protected CliIndexerSignatureMember(TIndexerParent parent, ICliMetadataPropertyTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry)
 {
     this.uniqueIdentifier = uniqueIdentifier;
 }
Beispiel #8
0
 internal Event(IInterfaceType parent, ICliMetadataEventTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry, uniqueIdentifier)
 {
 }
Beispiel #9
0
 protected CliEventMember(TEventParent parent, ICliMetadataEventTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry, uniqueIdentifier)
 {
 }
Beispiel #10
0
 protected override IClassIndexerMember GetIndexer(ICliMetadataPropertyTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
 {
     return(new IndexerMember(this, metadataEntry, uniqueIdentifier));
 }
Beispiel #11
0
 protected override IClassEventMember GetEvent(ICliMetadataEventTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
 {
     return(new EventMember(this, uniqueIdentifier, metadataEntry));
 }
Beispiel #12
0
 protected override IClassCtorMember GetConstructor(ICliMetadataMethodDefinitionTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
 {
     return(new CtorMember(this, metadataEntry, this.IdentityManager, uniqueIdentifier));
 }
Beispiel #13
0
 protected abstract TIndexer GetIndexer(ICliMetadataPropertyTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier);
Beispiel #14
0
 protected abstract TEvent GetEvent(ICliMetadataEventTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier);
Beispiel #15
0
 protected abstract TCtor GetConstructor(ICliMetadataMethodDefinitionTableRow metadataEntry, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier);
Beispiel #16
0
 protected CliConstructorMember(TCtorParent parent, ICliMetadataMethodDefinitionTableRow metadataEntry, _ICliManager identityManager, IGeneralSignatureMemberUniqueIdentifier uniqueIdentifier)
     : base(parent, metadataEntry)
 {
     this.identityManager  = identityManager;
     this.uniqueIdentifier = uniqueIdentifier;
 }