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

◆ EnumCalendarsCallback()

static unsafe Interop.BOOL System.Globalization.CalendarData.EnumCalendarsCallback ( char * lpCalendarInfoString,
uint calendar,
IntPtr reserved,
void * lParam )
inlinestaticprivate

Definition at line 763 of file CalendarData.cs.

764 {
765 ref NlsEnumCalendarsData reference = ref Unsafe.As<byte, NlsEnumCalendarsData>(ref *(byte*)lParam);
766 try
767 {
768 if (reference.userOverride != calendar)
769 {
770 reference.calendars.Add((int)calendar);
771 }
772 return Interop.BOOL.TRUE;
773 }
774 catch (Exception)
775 {
776 return Interop.BOOL.FALSE;
777 }
778 }
void Add(TKey key, TValue value)

References System.Collections.Generic.Dictionary< TKey, TValue >.Add().

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