Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs')
-rw-r--r--src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs
index bca69bce3..cf4079084 100644
--- a/src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs
+++ b/src/System.Private.CoreLib/src/System/Runtime/InteropServices/PInvokeMarshal.cs
@@ -443,17 +443,17 @@ namespace System.Runtime.InteropServices
#endregion
#region String marshalling
- public static unsafe String PtrToStringUni(IntPtr ptr, int len)
+ public static unsafe string PtrToStringUni(IntPtr ptr, int len)
{
if (ptr == IntPtr.Zero)
throw new ArgumentNullException(nameof(ptr));
if (len < 0)
throw new ArgumentException(nameof(len));
- return new String((char*)ptr, 0, len);
+ return new string((char*)ptr, 0, len);
}
- public static unsafe String PtrToStringUni(IntPtr ptr)
+ public static unsafe string PtrToStringUni(IntPtr ptr)
{
if (IntPtr.Zero == ptr)
{
@@ -465,7 +465,7 @@ namespace System.Runtime.InteropServices
}
else
{
- return new String((char*)ptr);
+ return new string((char*)ptr);
}
}
@@ -553,7 +553,7 @@ namespace System.Runtime.InteropServices
int lenUnicode;
CalculateStringLength(pchBuffer, out lenAnsi, out lenUnicode);
- string result = String.Empty;
+ string result = string.Empty;
if (lenUnicode > 0)
{
@@ -768,7 +768,7 @@ namespace System.Runtime.InteropServices
int lenAnsi = GetAnsiStringLen(pchBuffer);
int lenUnicode = charCount;
- string result = String.Empty;
+ string result = string.Empty;
if (lenUnicode > 0)
{