Replace ToUpper/ToLower with ToUpperInvariant/ToLowerInvariant. (#16895)
parent
168f7baeda
commit
dc82ddf50b
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace RazorPagesContacts.Pages.Customers
|
|||
{
|
||||
return Page();
|
||||
}
|
||||
Customer.Name = Customer.Name?.ToUpper();
|
||||
Customer.Name = Customer.Name?.ToUpperInvariant();
|
||||
return await OnPostJoinListAsync();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace RazorPagesContacts.Pages.Customers
|
|||
{
|
||||
return Page();
|
||||
}
|
||||
Customer.Name = Customer.Name?.ToUpper();
|
||||
Customer.Name = Customer.Name?.ToUpperInvariant();
|
||||
return await OnPostJoinListAsync();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue