Skip to content

Commit

Permalink
Merge pull request #64773 from raulsntos/dotnet6-🦭
Browse files Browse the repository at this point in the history
C#: Seal classes that can't be inherited from
  • Loading branch information
neikeq committed Aug 24, 2022
2 parents 08d8f88 + d6574f0 commit 4d9ddc8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Godot.Bridge;

public class GodotSerializationInfo : IDisposable
public sealed class GodotSerializationInfo : IDisposable
{
private readonly Collections.Dictionary _properties;
private readonly Collections.Dictionary _signalEvents;
Expand Down
4 changes: 2 additions & 2 deletions modules/mono/glue/GodotSharp/GodotSharp/Variant.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public partial struct Variant : IDisposable
private object? _obj;
private Disposer? _disposer;

private class Disposer : IDisposable
private sealed class Disposer : IDisposable
{
private godot_variant.movable _native;

Expand All @@ -37,7 +37,7 @@ public void Dispose()
GC.SuppressFinalize(this);
}

public void Dispose(bool disposing)
private void Dispose(bool disposing)
{
_native.DangerousSelfRef.Dispose();

Expand Down

0 comments on commit 4d9ddc8

Please sign in to comment.