public void Dispose() { if (CoreObject.Pointer != IntPtr.Zero) { XmlSDK.RapidXmlA_Delete(CoreObject); mCoreObject.Pointer = IntPtr.Zero; } }