protected virtual void Dispose(bool disposing) { if (NativeRef != null) { NativeRef.ReleaseReference(disposing); } }