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(); }
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(); }
/// <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; } }
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; }
public IDeclarationResourcesStringTable GetPartialClone(IDeclarationResources targetDeclaration) { return(new DeclarationResourcesStringTable(this, this.originalKeys, targetDeclaration)); }
internal DeclarationResourcesStringTable(DeclarationResourcesStringTable sibling, IDictionary <string, string> originalKeys, IDeclarationResources resources) : base(sibling) { this.originalKeys = originalKeys; this.resources = resources; }
internal DeclarationResourcesStringTable(IDeclarationResources resources) { this.resources = resources; }
public DeclarationResources(IDeclarationResources basePartial, ITypeParent parentTarget) : base(basePartial, parentTarget) { }