You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
C#: Throw ObjectDisposedException from disposed wrapper classes
This commit is contained in:
@@ -50,6 +50,9 @@ namespace Godot.Collections
|
||||
|
||||
internal IntPtr GetPtr()
|
||||
{
|
||||
if (disposed)
|
||||
throw new ObjectDisposedException(GetType().FullName);
|
||||
|
||||
return safeHandle.DangerousGetHandle();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user