src/Slugent.APIInfo/ConfigInfo/ConfigurationParser.cs
/// <summary>
///  Identifies all occurrences of the given key in all the configuration providers.
/// </summary>
/// <param name="key">The key searching for</param>
/// <returns></returns>
Identifies all occurrences of the given key in all the configuration providers.
Identifies all occurrences of the given key in all the configuration providers .
internal Stack<(string Value, IConfigurationProvider Provider)> GetChildrenAndOverwrites (string key) {
			Stack<(string, IConfigurationProvider)> stack = new Stack<(string, IConfigurationProvider)>();
			foreach ( IConfigurationProvider provider in _configRoot.Providers ) {
				if ( provider.TryGet(key, out string value) ) stack.Push((value, provider));
			}
			return stack;
		}
internal Stack < ( string Value , IConfigurationProvider Provider ) > GetChildrenAndOverwrites ( string key ) { Stack < ( string , IConfigurationProvider ) > stack = new Stack < ( string , IConfigurationProvider ) > ( ) ; foreach ( IConfigurationProvider provider in _configRoot . Providers ) { if ( provider . TryGet ( key , out string value ) ) stack . Push ( ( value , provider ) ) ; } return stack ; }
Identifies all occurrences of the given key in all the configuration providers.
Identifies all occurrences of the given key in all the configuration providers .
None
key
string
The key searching for
The key searching for