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

◆ GreaterThan() [2/2]

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

Definition at line 808 of file GenericArraySortHelper.cs.

809 {
810 if (typeof(TKey) == typeof(byte))
811 {
812 if ((byte)(object)left <= (byte)(object)right)
813 {
814 return false;
815 }
816 return true;
817 }
818 if (typeof(TKey) == typeof(sbyte))
819 {
820 if ((sbyte)(object)left <= (sbyte)(object)right)
821 {
822 return false;
823 }
824 return true;
825 }
826 if (typeof(TKey) == typeof(ushort))
827 {
828 if ((ushort)(object)left <= (ushort)(object)right)
829 {
830 return false;
831 }
832 return true;
833 }
834 if (typeof(TKey) == typeof(short))
835 {
836 if ((short)(object)left <= (short)(object)right)
837 {
838 return false;
839 }
840 return true;
841 }
842 if (typeof(TKey) == typeof(uint))
843 {
844 if ((uint)(object)left <= (uint)(object)right)
845 {
846 return false;
847 }
848 return true;
849 }
850 if (typeof(TKey) == typeof(int))
851 {
852 if ((int)(object)left <= (int)(object)right)
853 {
854 return false;
855 }
856 return true;
857 }
858 if (typeof(TKey) == typeof(ulong))
859 {
860 if ((ulong)(object)left <= (ulong)(object)right)
861 {
862 return false;
863 }
864 return true;
865 }
866 if (typeof(TKey) == typeof(long))
867 {
868 if ((long)(object)left <= (long)(object)right)
869 {
870 return false;
871 }
872 return true;
873 }
874 if (typeof(TKey) == typeof(UIntPtr))
875 {
876 if ((nuint)(UIntPtr)(object)left <= (nuint)(UIntPtr)(object)right)
877 {
878 return false;
879 }
880 return true;
881 }
882 if (typeof(TKey) == typeof(IntPtr))
883 {
884 if ((nint)(IntPtr)(object)left <= (nint)(IntPtr)(object)right)
885 {
886 return false;
887 }
888 return true;
889 }
890 if (typeof(TKey) == typeof(float))
891 {
892 if (!((float)(object)left > (float)(object)right))
893 {
894 return false;
895 }
896 return true;
897 }
898 if (typeof(TKey) == typeof(double))
899 {
900 if (!((double)(object)left > (double)(object)right))
901 {
902 return false;
903 }
904 return true;
905 }
906 if (typeof(TKey) == typeof(Half))
907 {
908 if (!((Half)(object)left > (Half)(object)right))
909 {
910 return false;
911 }
912 return true;
913 }
914 if (left.CompareTo(right) <= 0)
915 {
916 return false;
917 }
918 return true;
919 }