summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:35:16 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-02-03 15:35:16 +0100
commit91dfd6484b67821f0052c8d2205dd24e62a052ac (patch)
tree76e516243294638d74fbc15e2ef4e2b6415aaf90
parent1ed549e64b141e068bfe1a59bf65e943cde3fc6c (diff)
parentac96af1cc987e75ebd4c126a5cd90a393167e080 (diff)
Merge pull request #72633 from RedworkDE/net-stringname-iequatable
C#: Declare `IEquatable<>` interface for `StringName`
-rw-r--r--modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs
index b9ee0bc278..97d28f9ee9 100644
--- a/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs
+++ b/modules/mono/glue/GodotSharp/GodotSharp/Core/StringName.cs
@@ -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;