public unsafe ComPointer(Unknown managedObject) { _managedObject = managedObject; _ptr = managedObject.DangerousGetPointer(); managedObject.AddRef(); }