diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-03 15:35:16 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-02-03 15:35:16 +0100 |
commit | 91dfd6484b67821f0052c8d2205dd24e62a052ac (patch) | |
tree | 76e516243294638d74fbc15e2ef4e2b6415aaf90 | |
parent | 1ed549e64b141e068bfe1a59bf65e943cde3fc6c (diff) | |
parent | ac96af1cc987e75ebd4c126a5cd90a393167e080 (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.cs | 2 |
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; |