// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Generic;
usingSystem.Diagnostics;
usingSystem.Runtime.CompilerServices;
namespaceRoslyn.Utilities
{
/// <summary>
/// Very cheap trivial comparer that never matches the keys,
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
usingSystem.Collections.Generic;
usingSystem.Runtime.CompilerServices;
namespaceRoslyn.Utilities
{
/// <summary>
/// Compares string based upon their ordinal equality.
/// We use this comparer for string identifiers because it does exactly what we need and nothing more
/// The StringComparer.Ordinal as implemented by StringComparer is more complex to support
/// case sensitive and insensitive compares depending on flags.
/// It also defers to the default string hash function that might not be the best for our scenarios.