Replace ToUpper/ToLower with ToUpperInvariant/ToLowerInvariant. (#16895)

pull/16923/head
Kirk Larkin 2020-02-08 20:05:45 +00:00 committed by GitHub
parent 168f7baeda
commit dc82ddf50b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -34,7 +34,7 @@ namespace RequestResponseSample
foreach (var item in list)
{
await context.Response.WriteAsync(item.ToUpper());
await context.Response.WriteAsync(item.ToUpperInvariant());
await context.Response.WriteAsync(Environment.NewLine);
}
});
@ -45,7 +45,7 @@ namespace RequestResponseSample
foreach (var item in list)
{
await context.Response.WriteAsync(item.ToUpper());
await context.Response.WriteAsync(item.ToUpperInvariant());
await context.Response.WriteAsync(Environment.NewLine);
}
});
@ -55,7 +55,7 @@ namespace RequestResponseSample
var list = await GetListOfStringFromPipe(context.Request.BodyPipe);
foreach (var item in list)
{
await context.Response.WriteAsync(item.ToUpper());
await context.Response.WriteAsync(item.ToUpperInvariant());
await context.Response.WriteAsync(Environment.NewLine);
}
});

View File

@ -35,7 +35,7 @@ namespace RazorPagesContacts.Pages.Customers
{
return Page();
}
Customer.Name = Customer.Name?.ToUpper();
Customer.Name = Customer.Name?.ToUpperInvariant();
return await OnPostJoinListAsync();
}
}

View File

@ -35,7 +35,7 @@ namespace RazorPagesContacts.Pages.Customers
{
return Page();
}
Customer.Name = Customer.Name?.ToUpper();
Customer.Name = Customer.Name?.ToUpperInvariant();
return await OnPostJoinListAsync();
}
}