diff options
author | Stephen Toub <stoub@microsoft.com> | 2018-06-24 23:21:25 -0400 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-06-25 12:48:22 -0700 |
commit | 053e002e3299373ec85f5dc23f744337484d56ed (patch) | |
tree | 44b8acfa54835804c8a30c2ecafa80be697c7977 /src | |
parent | 030a3ea9b8dbeae89c90d34441d4d9a1cf4a7de6 (diff) | |
download | coreclr-053e002e3299373ec85f5dc23f744337484d56ed.tar.gz coreclr-053e002e3299373ec85f5dc23f744337484d56ed.tar.bz2 coreclr-053e002e3299373ec85f5dc23f744337484d56ed.zip |
Simplify types in non-shared corelib (dotnet/corert#6008)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/StubEnvironment.cs | 2 | ||||
-rw-r--r-- | src/System.Private.CoreLib/shared/System/IO/TextWriter.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/StubEnvironment.cs b/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/StubEnvironment.cs index 13de05a701..6f2eb9ba21 100644 --- a/src/System.Private.CoreLib/shared/System/Diagnostics/Tracing/StubEnvironment.cs +++ b/src/System.Private.CoreLib/shared/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/System.Private.CoreLib/shared/System/IO/TextWriter.cs b/src/System.Private.CoreLib/shared/System/IO/TextWriter.cs index 4ab3c708cc..547c597f03 100644 --- a/src/System.Private.CoreLib/shared/System/IO/TextWriter.cs +++ b/src/System.Private.CoreLib/shared/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) { |