File tree Expand file tree Collapse file tree 2 files changed +9
-4
lines changed
OneScript.StandardLibrary/Collections/Indexes Expand file tree Collapse file tree 2 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 11/*----------------------------------------------------------
2- This Source Code Form is subject to the terms of the
3- Mozilla Public License, v.2.0. If a copy of the MPL
4- was not distributed with this file, You can obtain one
2+ This Source Code Form is subject to the terms of the
3+ Mozilla Public License, v.2.0. If a copy of the MPL
4+ was not distributed with this file, You can obtain one
55at http://mozilla.org/MPL/2.0/.
66----------------------------------------------------------*/
77
@@ -24,6 +24,11 @@ public override bool Equals(BslValue other)
2424 return ReferenceEquals ( Instance , other ) ;
2525 }
2626
27+ public override int GetHashCode ( )
28+ {
29+ return 42 ; // Константа для синглтона
30+ }
31+
2732 public override string ToString ( ) => string . Empty ;
2833 }
2934}
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ public override bool Equals(object obj)
5757 foreach ( var key in allKeys )
5858 {
5959 var thisValue = _values [ key ] ;
60- var otherValue = _values [ key ] ;
60+ var otherValue = casted . _values [ key ] ;
6161
6262 if ( ! thisValue . Equals ( otherValue ) ) return false ;
6363 }
You can’t perform that action at this time.
0 commit comments