Ejemplo n.º 1
0
 private void CheckGenericCache()
 {
     if (this.genericCache == null)
     {
         this.genericCache = new GenericMethodSignatureCache <IMethodSignatureParameterMember <TSignature, TSignatureParent>, TSignature, TSignatureParent>();
     }
 }
Ejemplo n.º 2
0
 private void CheckGenericMethodCache()
 {
     lock (this.SyncObject)
         if (this.genericMethodCache == null)
         {
             this.genericMethodCache = new GenericMethodSignatureCache <IMethodSignatureParameterMember <TSignature, TParent>, TSignature, TParent>();
         }
 }
Ejemplo n.º 3
0
 public override void Dispose()
 {
     try
     {
         lock (this.syncObject)
             if (this.genericCache != null)
             {
                 this.genericCache.Dispose();
                 this.genericCache = null;
             }
     }
     finally
     {
         base.Dispose();
     }
 }
Ejemplo n.º 4
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         lock (this.SyncObject)
         {
             if (this.genericMethodCache != null)
             {
                 this.genericMethodCache.Dispose();
             }
             this.genericMethodCache = null;
         }
     }
     finally
     {
         base.Dispose(disposing);
     }
 }