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