Seal classes that can't be inherited from
This commit is contained in:
parent
155fa4e156
commit
d6574f025b
@ -4,7 +4,7 @@ using Godot.NativeInterop;
|
|||||||
|
|
||||||
namespace Godot.Bridge;
|
namespace Godot.Bridge;
|
||||||
|
|
||||||
public class GodotSerializationInfo : IDisposable
|
public sealed class GodotSerializationInfo : IDisposable
|
||||||
{
|
{
|
||||||
private readonly Collections.Dictionary _properties;
|
private readonly Collections.Dictionary _properties;
|
||||||
private readonly Collections.Dictionary _signalEvents;
|
private readonly Collections.Dictionary _signalEvents;
|
||||||
|
@ -14,7 +14,7 @@ public partial struct Variant : IDisposable
|
|||||||
private object? _obj;
|
private object? _obj;
|
||||||
private Disposer? _disposer;
|
private Disposer? _disposer;
|
||||||
|
|
||||||
private class Disposer : IDisposable
|
private sealed class Disposer : IDisposable
|
||||||
{
|
{
|
||||||
private godot_variant.movable _native;
|
private godot_variant.movable _native;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ public partial struct Variant : IDisposable
|
|||||||
GC.SuppressFinalize(this);
|
GC.SuppressFinalize(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Dispose(bool disposing)
|
private void Dispose(bool disposing)
|
||||||
{
|
{
|
||||||
_native.DangerousSelfRef.Dispose();
|
_native.DangerousSelfRef.Dispose();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user