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

◆ LessThan() [2/2]

static bool System.Collections.Generic.GenericArraySortHelper< TKey, TValue >.LessThan ( ref TKey left,
ref TKey right )
inlinestaticprivate

Definition at line 694 of file GenericArraySortHelper.cs.

695 {
696 if (typeof(TKey) == typeof(byte))
697 {
698 if ((byte)(object)left >= (byte)(object)right)
699 {
700 return false;
701 }
702 return true;
703 }
704 if (typeof(TKey) == typeof(sbyte))
705 {
706 if ((sbyte)(object)left >= (sbyte)(object)right)
707 {
708 return false;
709 }
710 return true;
711 }
712 if (typeof(TKey) == typeof(ushort))
713 {
714 if ((ushort)(object)left >= (ushort)(object)right)
715 {
716 return false;
717 }
718 return true;
719 }
720 if (typeof(TKey) == typeof(short))
721 {
722 if ((short)(object)left >= (short)(object)right)
723 {
724 return false;
725 }
726 return true;
727 }
728 if (typeof(TKey) == typeof(uint))
729 {
730 if ((uint)(object)left >= (uint)(object)right)
731 {
732 return false;
733 }
734 return true;
735 }
736 if (typeof(TKey) == typeof(int))
737 {
738 if ((int)(object)left >= (int)(object)right)
739 {
740 return false;
741 }
742 return true;
743 }
744 if (typeof(TKey) == typeof(ulong))
745 {
746 if ((ulong)(object)left >= (ulong)(object)right)
747 {
748 return false;
749 }
750 return true;
751 }
752 if (typeof(TKey) == typeof(long))
753 {
754 if ((long)(object)left >= (long)(object)right)
755 {
756 return false;
757 }
758 return true;
759 }
760 if (typeof(TKey) == typeof(UIntPtr))
761 {
762 if ((nuint)(UIntPtr)(object)left >= (nuint)(UIntPtr)(object)right)
763 {
764 return false;
765 }
766 return true;
767 }
768 if (typeof(TKey) == typeof(IntPtr))
769 {
770 if ((nint)(IntPtr)(object)left >= (nint)(IntPtr)(object)right)
771 {
772 return false;
773 }
774 return true;
775 }
776 if (typeof(TKey) == typeof(float))
777 {
778 if (!((float)(object)left < (float)(object)right))
779 {
780 return false;
781 }
782 return true;
783 }
784 if (typeof(TKey) == typeof(double))
785 {
786 if (!((double)(object)left < (double)(object)right))
787 {
788 return false;
789 }
790 return true;
791 }
792 if (typeof(TKey) == typeof(Half))
793 {
794 if (!((Half)(object)left < (Half)(object)right))
795 {
796 return false;
797 }
798 return true;
799 }
800 if (left.CompareTo(right) >= 0)
801 {
802 return false;
803 }
804 return true;
805 }