C#: Declare IEquatable<> interface for StringName

This commit is contained in:
RedworkDE 2023-02-03 00:22:53 +01:00
parent a16b0fec40
commit ac96af1cc9

View File

@ -10,7 +10,7 @@ namespace Godot
/// Comparing them is much faster than with regular strings, because only the pointers are compared,
/// not the whole strings.
/// </summary>
public sealed class StringName : IDisposable
public sealed class StringName : IDisposable, IEquatable<StringName>
{
internal godot_string_name.movable NativeValue;