private void DisposeDisplay() { if (null != mDisplayAttributes) { if (!Object.ReferenceEquals(mDisplayAttributes, mPersistent) && !Object.ReferenceEquals(mDisplayAttributes, base.HostImpl)) { mDisplayAttributes.DisposeObject(); } } mDisplayAttributes = null; }