using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ReflectionToEcmaCil { public class Reader: IDisposable { private Dictionary mMethods = new Dictionary(); private Dictionary mTypes = new Dictionary(); private Dictionary mArrayTypes = new Dictionary(); private Dictionary mPointerTypes = new Dictionary(); private Dictionary mVirtuals = new Dictionary(); public void Dispose() { if (mMethods != null) { Clear(); mMethods = null; mTypes = null; mArrayTypes = null; mPointerTypes = null; mVirtuals = null; } GC.SuppressFinalize(this); } public void Clear() { mMethods.Clear(); mTypes.Clear(); mArrayTypes.Clear(); mPointerTypes.Clear(); mVirtuals.Clear(); } } }