private void Release() { if (this.comObject != null) { Marshal.ReleaseComObject(this.comObject); this.comObject = null; this.getSurfaceLevel = null; } }
internal Direct3DTexture9(ComInterface.IDirect3DTexture9 obj) { this.comObject = obj; ComInterface.GetComMethod(this.comObject, 18, out this.getSurfaceLevel); }