Fix additional StringBuilder directions in corefx Unix code
authorstephentoub <stoub@microsoft.com>
Thu, 8 Oct 2015 18:50:28 +0000 (14:50 -0400)
committerstephentoub <stoub@microsoft.com>
Thu, 8 Oct 2015 18:50:28 +0000 (14:50 -0400)
src/mscorlib/corefx/Interop/Unix/System.Globalization.Native/Interop.Calendar.cs
src/mscorlib/corefx/Interop/Unix/System.Globalization.Native/Interop.Locale.cs
src/mscorlib/corefx/Interop/Unix/System.Globalization.Native/Interop.TimeZoneInfo.cs

index f0b63b6..43dd500 100644 (file)
@@ -18,7 +18,7 @@ internal static partial class Interop
         internal static extern int GetCalendars(string localeName, CalendarId[] calendars, int calendarsCapacity);
 
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
-        internal static extern CalendarDataResult GetCalendarInfo(string localeName, CalendarId calendarId, CalendarDataType calendarDataType, StringBuilder result, int resultCapacity);
+        internal static extern CalendarDataResult GetCalendarInfo(string localeName, CalendarId calendarId, CalendarDataType calendarDataType, [Out] StringBuilder result, int resultCapacity);
 
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
         [return: MarshalAs(UnmanagedType.Bool)]
index d719a42..e8dfe73 100644 (file)
@@ -11,15 +11,15 @@ internal static partial class Interop
     {
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
         [return: MarshalAs(UnmanagedType.Bool)]
-        internal unsafe static extern bool GetLocaleName(string localeName, StringBuilder value, int valueLength);
+        internal unsafe static extern bool GetLocaleName(string localeName, [Out] StringBuilder value, int valueLength);
 
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
         [return: MarshalAs(UnmanagedType.Bool)]
-        internal unsafe static extern bool GetLocaleInfoString(string localeName, uint localeStringData, StringBuilder value, int valueLength);
+        internal unsafe static extern bool GetLocaleInfoString(string localeName, uint localeStringData, [Out] StringBuilder value, int valueLength);
 
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
         [return: MarshalAs(UnmanagedType.Bool)]
-        internal unsafe static extern bool GetLocaleTimeFormat(string localeName, bool shortFormat, StringBuilder value, int valueLength);
+        internal unsafe static extern bool GetLocaleTimeFormat(string localeName, bool shortFormat, [Out] StringBuilder value, int valueLength);
 
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Unicode)]
         [return: MarshalAs(UnmanagedType.Bool)]
index 4038984..98829b6 100644 (file)
@@ -10,6 +10,6 @@ internal static partial class Interop
     {
         [DllImport(Libraries.GlobalizationInterop, CharSet = CharSet.Ansi)] // readlink requires char*
         [return: MarshalAs(UnmanagedType.Bool)]
-        internal static extern bool ReadLink(string filePath, StringBuilder result, uint resultCapacity);
+        internal static extern bool ReadLink(string filePath, [Out] StringBuilder result, uint resultCapacity);
     }
 }