// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
namespace Microsoft.AspNetCore.Identity
{
///
/// Implements by converting keys to their upper cased invariant culture representation.
///
public class UpperInvariantLookupNormalizer : ILookupNormalizer
{
///
/// Returns a normalized representation of the specified
/// by converting keys to their upper cased invariant culture representation.
///
/// The key to normalize.
/// A normalized representation of the specified .
public virtual string Normalize(string key)
{
if (key == null)
{
return null;
}
return key.Normalize().ToUpperInvariant();
}
}
}