-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Moved extensions.cs to shared folder in coreclr #16459
Conversation
|
|
||
| namespace System.Globalization | ||
| { | ||
| public static class GlobalizationExtensions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file should be called GlobalizationExtensions.cs to match coding conventions.
| } | ||
| } | ||
|
|
||
| internal sealed class CultureAwareComparer : StringComparer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be deleted because of we want to use the CultureAwareComparer that is in CoreLib already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Anipik you need to delete CultureAwareComparer from here and introduce a new constructor which takes CompareInfo in https://github.com/dotnet/coreclr/blob/master/src/mscorlib/shared/System/StringComparer.cs#L175
In reply to: 169498383 [](ancestors = 169498383)
| private CompareOptions _options; | ||
|
|
||
| internal CultureAwareComparer(CultureInfo culture, CompareOptions compareOptions) | ||
| internal CultureAwareComparer(CultureInfo culture, CompareOptions compareOptions) : this(culture.CompareInfo, compareOptions) { } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jkotas should we change all of these to options for consistency ?
|
@jkotas @danmosemsft should I go ahead and merge this one ? |
* Moved extensions.cs to shared folder * added to shared to projItems * Added new constructor * Parameter Named Changed Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Moved extensions.cs to shared folder * added to shared to projItems * Added new constructor * Parameter Named Changed Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
* Moved extensions.cs to shared folder * added to shared to projItems * Added new constructor * Parameter Named Changed Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
* Moved extensions.cs to shared folder * added to shared to projItems * Added new constructor * Parameter Named Changed Signed-off-by: dotnet-bot-corefx-mirror <dotnet-bot@microsoft.com>
* Moved extensions.cs to shared folder * added to shared to projItems * Added new constructor * Parameter Named Changed Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Related to dotnet/corefx#27099