private void Release() { if (this.comObject != null) { Marshal.ReleaseComObject(this.comObject); this.comObject = null; this.createDevice = null; } }
private Direct3D9(ComInterface.IDirect3D9 obj) { this.comObject = obj; ComInterface.GetComMethod(this.comObject, 16, out this.createDevice); }