Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ comparer

IComparer? System.Collections.Hashtable.comparer
getsetprotectedinherited

Definition at line 447 of file Hashtable.cs.

448 {
449 get
450 {
451 if (_keycomparer is CompatibleComparer)
452 {
453 return ((CompatibleComparer)_keycomparer).Comparer;
454 }
455 if (_keycomparer == null)
456 {
457 return null;
458 }
459 throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure);
460 }
461 set
462 {
463 if (_keycomparer is CompatibleComparer compatibleComparer)
464 {
465 _keycomparer = new CompatibleComparer(compatibleComparer.HashCodeProvider, value);
466 return;
467 }
468 if (_keycomparer == null)
469 {
470 _keycomparer = new CompatibleComparer(null, value);
471 return;
472 }
473 throw new ArgumentException(SR.Arg_CannotMixComparisonInfrastructure);
474 }
475 }
IEqualityComparer _keycomparer
Definition Hashtable.cs:413

Referenced by System.Collections.Hashtable.Hashtable(), and System.Collections.Hashtable.OnDeserialization().