Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@Anipik
Copy link

@Anipik Anipik commented Feb 20, 2018

Related to dotnet/corefx#27099


namespace System.Globalization
{
public static class GlobalizationExtensions
Copy link
Member

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
Copy link
Member

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.

Copy link
Member

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) { }
Copy link
Author

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 ?

@Anipik
Copy link
Author

Anipik commented Feb 21, 2018

@jkotas @danmosemsft should I go ahead and merge this one ?

@jkotas jkotas merged commit 8ee398e into dotnet:master Feb 21, 2018
dotnet-bot pushed a commit to dotnet/corert that referenced this pull request Feb 21, 2018
* 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>
jkotas pushed a commit to dotnet/corert that referenced this pull request Feb 21, 2018
* 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>
dotnet-bot pushed a commit to dotnet/corefx that referenced this pull request Feb 21, 2018
* 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>
Anipik added a commit to dotnet/corefx that referenced this pull request Feb 21, 2018
* 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>
kbaladurin pushed a commit to kbaladurin/corert that referenced this pull request Mar 15, 2018
* 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>
@Anipik Anipik deleted the GetStringComparer branch March 24, 2018 01:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants