From: Stephen Toub Date: Mon, 25 Jun 2018 03:21:25 +0000 (-0400) Subject: Simplify types in non-shared corelib (dotnet/corertdotnet/coreclr#6008) X-Git-Tag: submit/tizen/20210909.063632~11030^2~4517 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14db4f83d9a261cd757063d0256c587f4a82ca7f;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Simplify types in non-shared corelib (dotnet/corertdotnet/coreclr#6008) Signed-off-by: dotnet-bot Commit migrated from https://github.com/dotnet/coreclr/commit/053e002e3299373ec85f5dc23f744337484d56ed --- diff --git a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs index 13de05a..6f2eb9b 100644 --- a/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs +++ b/src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/StubEnvironment.cs @@ -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; } diff --git a/src/libraries/System.Private.CoreLib/src/System/IO/TextWriter.cs b/src/libraries/System.Private.CoreLib/src/System/IO/TextWriter.cs index 4ab3c70..547c597 100644 --- a/src/libraries/System.Private.CoreLib/src/System/IO/TextWriter.cs +++ b/src/libraries/System.Private.CoreLib/src/System/IO/TextWriter.cs @@ -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) {