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

◆ InsertOrSwapOverride()

void System.Globalization.CalendarData.InsertOrSwapOverride ( string value,
ref string[] destination )
inlineprivate

Definition at line 803 of file CalendarData.cs.

804 {
805 if (value == null)
806 {
807 return;
808 }
809 for (int i = 0; i < destination.Length; i++)
810 {
811 if (destination[i] == value)
812 {
813 if (i > 0)
814 {
815 string text = destination[0];
816 destination[0] = value;
817 destination[i] = text;
818 }
819 return;
820 }
821 }
822 string[] array = new string[destination.Length + 1];
823 array[0] = value;
824 Array.Copy(destination, 0, array, 1, destination.Length);
826 }

References System.array, System.Array.Copy(), System.destination, System.text, and System.value.

Referenced by System.Globalization.CalendarData.LoadCalendarDataFromSystemCore().