示例#1
0
 public override void Dispose()
 {
     if (this.classes != null)
     {
         this.classes.Dispose();
     }
     if (this.delegates != null)
     {
         this.delegates.Dispose();
     }
     if (this.enumerators != null)
     {
         this.enumerators.Dispose();
     }
     if (this.interfaces != null)
     {
         this.interfaces.Dispose();
     }
     if (this.structures != null)
     {
         this.structures.Dispose();
     }
     if (this.snippetMembers != null)
     {
         this.snippetMembers.Dispose();
     }
     if (this.properties != null)
     {
         this.properties.Dispose();
     }
     if (this.methods != null)
     {
         this.methods.Dispose();
     }
     if (this.fields != null)
     {
         this.fields.Dispose();
     }
     if (this.constructors != null)
     {
         this.constructors.Dispose();
     }
     this.classes     = null;
     this.delegates   = null;
     this.enumerators = null;
     this.interfaces  = null;
     this.structures  = null;
     if (this.resources != null)
     {
         this.resources.Dispose();
         this.resources = null;
     }
     this.fields       = null;
     this.constructors = null;
     base.Dispose();
 }
示例#2
0
 internal DeclarationResourcesStringTableEntry(IDeclarationResources declarationTarget, string name, string value)
 {
     if (declarationTarget == null)
     {
         throw new ArgumentNullException("declarationTarget");
     }
     if (name == null || name == string.Empty)
     {
         throw new ArgumentNullException("name");
     }
     if (value == null || value == string.Empty)
     {
         throw new ArgumentNullException("value");
     }
     this.declarationTarget = declarationTarget;
     this.name  = name;
     this.value = value;
     this.Rebuild();
 }
示例#3
0
 /// <summary>
 /// Releases any data associated with the <see cref="IntermediateProject"/>.
 /// </summary>
 public void Dispose()
 {
     if (this.classes != null)
     {
         this.classes.Dispose();
     }
     if (this.delegates != null)
     {
         this.delegates.Dispose();
     }
     if (this.enumerators != null)
     {
         this.enumerators.Dispose();
     }
     if (this.interfaces != null)
     {
         this.interfaces.Dispose();
     }
     if (this.structures != null)
     {
         this.structures.Dispose();
     }
     if (!this.IsPartial && (this.partials != null))
     {
         this.partials.Dispose();
         this.partials = null;
     }
     else
     {
         this.baseDeclaration = null;
     }
     this.classes     = null;
     this.delegates   = null;
     this.enumerators = null;
     this.interfaces  = null;
     this.structures  = null;
     if (this.resources != null)
     {
         this.resources.Dispose();
         this.resources = null;
     }
 }
示例#4
0
 public void Dispose()
 {
     if (this.autoMember != null)
     {
         this.autoMember.Dispose();
         this.autoMember = null;
     }
     if (this.dataMember != null)
     {
         this.dataMember.Dispose();
         this.dataMember = null;
     }
     if (this.declarationTarget != null)
     {
         this.declarationTarget = null;
     }
     this.namePrimitive = null;
     this.name          = null;
     this.value         = null;
 }
示例#5
0
 public IDeclarationResourcesStringTable GetPartialClone(IDeclarationResources targetDeclaration)
 {
     return(new DeclarationResourcesStringTable(this, this.originalKeys, targetDeclaration));
 }
示例#6
0
 internal DeclarationResourcesStringTable(DeclarationResourcesStringTable sibling, IDictionary <string, string> originalKeys, IDeclarationResources resources)
     : base(sibling)
 {
     this.originalKeys = originalKeys;
     this.resources    = resources;
 }
示例#7
0
 internal DeclarationResourcesStringTable(IDeclarationResources resources)
 {
     this.resources = resources;
 }
示例#8
0
 public DeclarationResources(IDeclarationResources basePartial, ITypeParent parentTarget)
     : base(basePartial, parentTarget)
 {
 }