Cosmetic fixes after move to shared partition
authorJan Kotas <jkotas@microsoft.com>
Wed, 22 Nov 2017 14:17:04 +0000 (06:17 -0800)
committerJan Kotas <jkotas@microsoft.com>
Wed, 22 Nov 2017 17:31:50 +0000 (09:31 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
src/mscorlib/shared/System/ArraySegment.cs
src/mscorlib/shared/System/Empty.cs
src/mscorlib/shared/System/IntPtr.cs
src/mscorlib/shared/System/UIntPtr.cs

index 251dee8..d45fb0d 100644 (file)
@@ -71,7 +71,7 @@ namespace System
             {
                 if ((uint)index >= (uint)_count)
                 {
-                    ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
+                    ThrowHelper.ThrowArgumentOutOfRange_IndexException();
                 }
 
                 return _array[_offset + index];
@@ -80,7 +80,7 @@ namespace System
             {
                 if ((uint)index >= (uint)_count)
                 {
-                    ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
+                    ThrowHelper.ThrowArgumentOutOfRange_IndexException();
                 }
 
                 _array[_offset + index] = value;
@@ -150,7 +150,7 @@ namespace System
             
             if ((uint)index > (uint)_count)
             {
-                ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
+                ThrowHelper.ThrowArgumentOutOfRange_IndexException();
             }
 
             return new ArraySegment<T>(_array, _offset + index, _count - index);
@@ -162,7 +162,7 @@ namespace System
 
             if ((uint)index > (uint)_count || (uint)count > (uint)(_count - index))
             {
-                ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument.index);
+                ThrowHelper.ThrowArgumentOutOfRange_IndexException();
             }
 
             return new ArraySegment<T>(_array, _offset + index, count);
index 00fab0f..186b920 100644 (file)
@@ -17,9 +17,9 @@ namespace System
 
         public static readonly Empty Value = new Empty();
 
-        public override String ToString()
+        public override string ToString()
         {
-            return String.Empty;
+            return string.Empty;
         }
     }
 }
index 8626b56..45c2ded 100644 (file)
@@ -222,12 +222,12 @@ namespace System
             return _value;
         }
 
-        public unsafe override String ToString()
+        public unsafe override string ToString()
         {
             return ((nint)_value).ToString(CultureInfo.InvariantCulture);
         }
 
-        public unsafe String ToString(String format)
+        public unsafe string ToString(string format)
         {
             return ((nint)_value).ToString(format, CultureInfo.InvariantCulture);
         }
index d31728b..23750e9 100644 (file)
@@ -65,7 +65,7 @@ namespace System
             if (info == null)
                 throw new ArgumentNullException(nameof(info));
 
-            info.AddValue("value", (ulong)_value);
+            info.AddValue("value", ToUInt64());
         }
 
         public unsafe override bool Equals(Object obj)
@@ -213,7 +213,7 @@ namespace System
             return _value;
         }
 
-        public unsafe override String ToString()
+        public unsafe override string ToString()
         {
             return ((nuint)_value).ToString(CultureInfo.InvariantCulture);
         }