Simplify types in non-shared corelib (dotnet/corertdotnet/coreclr#6008)
authorStephen Toub <stoub@microsoft.com>
Mon, 25 Jun 2018 03:21:25 +0000 (23:21 -0400)
committerJan Kotas <jkotas@microsoft.com>
Mon, 25 Jun 2018 19:48:22 +0000 (12:48 -0700)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/053e002e3299373ec85f5dc23f744337484d56ed

src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs
src/libraries/System.Private.CoreLib/src/System/IO/TextWriter.cs

index 13de05a..6f2eb9b 100644 (file)
@@ -301,7 +301,7 @@ namespace Microsoft.Reflection
             else if (type == typeof(float)) return TypeCode.Single;
             else if (type == typeof(double)) return TypeCode.Double;
             else if (type == typeof(DateTime)) return TypeCode.DateTime;
-            else if (type == (typeof(Decimal))) return TypeCode.Decimal;
+            else if (type == (typeof(decimal))) return TypeCode.Decimal;
             else return TypeCode.Object;
         }
 
index 4ab3c70..547c597 100644 (file)
@@ -184,7 +184,7 @@ namespace System.IO
         }
 
         // Writes the text representation of a boolean to the text stream. This
-        // method outputs either Boolean.TrueString or Boolean.FalseString.
+        // method outputs either bool.TrueString or bool.FalseString.
         //
         public virtual void Write(bool value)
         {
@@ -231,7 +231,7 @@ namespace System.IO
 
         // Writes the text representation of a float to the text stream. The
         // text representation of the given value is produced by calling the
-        // Float.toString(float) method.
+        // float.ToString(float) method.
         //
         public virtual void Write(float value)
         {
@@ -240,7 +240,7 @@ namespace System.IO
 
         // Writes the text representation of a double to the text stream. The
         // text representation of the given value is produced by calling the
-        // Double.toString(double) method.
+        // double.ToString(double) method.
         //
         public virtual void Write(double value)
         {