ConfigurationKeyComparer Class¶
IComparer implementation used to order configuration keys.
- Namespace
Microsoft.Extensions.Configuration
- Assemblies
- Microsoft.Extensions.Configuration
Syntax¶
public class ConfigurationKeyComparer : IComparer<string>
-
class
Microsoft.Extensions.Configuration.
ConfigurationKeyComparer
Methods¶
-
Compare
(System.String, System.String)¶ Compares two strings.
Arguments: - x (System.String) – First string.
- y (System.String) – Second string.
Return type: System.Int32
public int Compare(string x, string y)
-
Properties¶
-
Microsoft.Extensions.Configuration.ConfigurationKeyComparer.
Instance
¶ The default instance.
Return type: Microsoft.Extensions.Configuration.ConfigurationKeyComparer public static ConfigurationKeyComparer Instance { get; }
-