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(); }
/// <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; } }
/// <summary> /// Releases the resources associated with the <see cref="NameSpaceDeclaration"/>. /// And places the <see cref="NameSpaceDeclaration"/> in a disposed state. /// </summary> public override void Dispose() { base.Dispose(); if (this.IsPartial) { this.basePartial = null; } else { this.partials.Dispose(); this.partials = null; } this.Classes.Dispose(); this.Delegates.Dispose(); this.ChildSpaces.Dispose(); this.Interfaces.Dispose(); this.Enumerators.Dispose(); this.Structures.Dispose(); this.classes = null; this.enumerators = null; this.delegates = null; this.interfaces = null; this.structures = null; }
public virtual void TranslateTypes(ITypeParent parent, IEnumeratorTypes enumTypes) { TranslateTypes <IEnumeratorType, CodeTypeDeclaration>(parent, enumTypes); }