From 4ece3f4b68d7d754adbd07bd70f4869e39679dd7 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Mon, 1 Aug 2016 11:09:31 -0700 Subject: [PATCH] Change "String." to "string." to match coding convention --- src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs | 2 +- .../TestConnection.cs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs b/src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs index 67d00e1700..4771fe54f7 100644 --- a/src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs +++ b/src/Microsoft.AspNetCore.Server.Kestrel/ServerAddress.cs @@ -37,7 +37,7 @@ namespace Microsoft.AspNetCore.Server.Kestrel { if (IsUnixPipe) { - if (String.IsNullOrEmpty(PathBase)) + if (string.IsNullOrEmpty(PathBase)) { return Scheme.ToLowerInvariant() + "://" + Host.ToLowerInvariant(); } diff --git a/test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs b/test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs index 41ed1501f6..5c54ca7d13 100644 --- a/test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs +++ b/test/Microsoft.AspNetCore.Server.KestrelTests/TestConnection.cs @@ -45,7 +45,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests public async Task SendAll(params string[] lines) { - var text = String.Join("\r\n", lines); + var text = string.Join("\r\n", lines); var writer = new StreamWriter(_stream, Encoding.GetEncoding("iso-8859-1")); await writer.WriteAsync(text); writer.Flush(); @@ -70,7 +70,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests public async Task Send(params string[] lines) { - var text = String.Join("\r\n", lines); + var text = string.Join("\r\n", lines); var writer = new StreamWriter(_stream, Encoding.GetEncoding("iso-8859-1")); for (var index = 0; index < text.Length; index++) { @@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.Server.KestrelTests public async Task Receive(params string[] lines) { - var expected = String.Join("\r\n", lines); + var expected = string.Join("\r\n", lines); var actual = new char[expected.Length]; var offset = 0; while (offset < expected.Length)