示例#1
0
 public virtual string NormalizeKey(string key)
 {
     return(KeyNormalizer != null?KeyNormalizer.Normalize(key) : key);
 }
 /// <summary>
 /// Normalize a key (canonical name) for consistent comparisons.
 /// </summary>
 /// <param name="key">The key to normalize.</param>
 /// <returns>A normalized value representing the specified <paramref name="key"/>.</returns>
 public virtual string NormalizeKey(string key)
 {
     return (KeyNormalizer == null) ? key : KeyNormalizer.Normalize(key);
 }
示例#3
0
 /// <summary>
 /// Normalize domain for consistent comparisons.
 /// </summary>
 /// <param name="domain">The name to normalize.</param>
 /// <returns>A normalized value representing the specified <paramref name="domain"/>.</returns>
 public virtual string NormalizeDomain(string domain)
 => (KeyNormalizer == null) ? domain : KeyNormalizer.Normalize(domain);