20 references to ResultCode
System.Private.CoreLib (20)
_generated\2\LibraryImports.g.cs (9)
296internal static unsafe partial global::Interop.Globalization.ResultCode GetCalendarInfo(string localeName, global::System.Globalization.CalendarId calendarId, global::System.Globalization.CalendarDataType calendarDataType, char* result, int resultCapacity) 298global::Interop.Globalization.ResultCode __retVal; 308static extern unsafe global::Interop.Globalization.ResultCode __PInvoke(ushort* __localeName_native, global::System.Globalization.CalendarId __calendarId_native, global::System.Globalization.CalendarDataType __calendarDataType_native, char* __result_native, int __resultCapacity_native); 449internal static unsafe partial global::Interop.Globalization.ResultCode GetSortHandle(string localeName, out nint sortHandle) 453global::Interop.Globalization.ResultCode __retVal = default; 477static extern unsafe global::Interop.Globalization.ResultCode __PInvoke(byte* __localeName_native, nint* __sortHandle_native); 935internal static unsafe partial global::Interop.Globalization.ResultCode GetTimeZoneDisplayName(string localeName, string timeZoneId, global::Interop.Globalization.TimeZoneDisplayNameType type, char* result, int resultLength) 937global::Interop.Globalization.ResultCode __retVal; 948static extern unsafe global::Interop.Globalization.ResultCode __PInvoke(ushort* __localeName_native, ushort* __timeZoneId_native, global::Interop.Globalization.TimeZoneDisplayNameType __type_native, char* __result_native, int __resultLength_native);
src\runtime\src\libraries\Common\src\Interop\Interop.Calendar.cs (1)
16internal static unsafe partial ResultCode GetCalendarInfo(string localeName, CalendarId calendarId, CalendarDataType calendarDataType, char* result, int resultCapacity);
src\runtime\src\libraries\Common\src\Interop\Interop.Collation.cs (1)
14internal static unsafe partial ResultCode GetSortHandle(string localeName, out IntPtr sortHandle);
src\runtime\src\libraries\Common\src\Interop\Interop.TimeZoneInfo.cs (1)
12internal static unsafe partial ResultCode GetTimeZoneDisplayName(
src\runtime\src\libraries\Common\src\Interop\Interop.Utils.cs (5)
15SpanFunc<char, TArg1, TArg2, TArg3, Globalization.ResultCode> interopCall, 23Globalization.ResultCode resultCode = interopCall(buffer, arg1, arg2, arg3); 25if (resultCode == Globalization.ResultCode.Success) 31if (resultCode == Globalization.ResultCode.InsufficientBuffer) 35if (interopCall(buffer, arg1, arg2, arg3) == Globalization.ResultCode.Success)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\CompareInfo.Icu.cs (3)
969Interop.Globalization.ResultCode resultCode = Interop.Globalization.GetSortHandle(sortName, out result); 971if (resultCode == Interop.Globalization.ResultCode.OutOfMemory) 973else if (resultCode != Interop.Globalization.ResultCode.Success)