We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0551a05 commit 1489910Copy full SHA for 1489910
SDK.CSharp/Updatables/AsyncUpdatableVariable.cs
@@ -1,4 +1,5 @@
1
-using OpenShock.MinimalEvents;
+using System.Collections.Generic;
2
+using OpenShock.MinimalEvents;
3
4
namespace OpenShock.SDK.CSharp.Updatables;
5
@@ -9,7 +10,7 @@ public T Value
9
10
get => _internalValue;
11
set
12
{
- if (_internalValue!.Equals(value)) return;
13
+ if (EqualityComparer<T>.Default.Equals(_internalValue, value)) return;
14
_internalValue = value;
15
Task.Run(() => _updated.InvokeAsyncParallel(value));
16
}
0 commit comments