예제 #1
0
        public string?TryGetValue(string key)
        {
            var configDic = Config.ToDictionary();

            return(NetworkTranslator.GetConfigPrefixesWithDots(Network)
                   .Select(networkPrefixWithDot => configDic.TryGet($"{networkPrefixWithDot}{key}"))
                   .LastOrDefault(x => x is { }));
예제 #2
0
        public string TryGetValue(string key)
        {
            var    configDic = Config.ToDictionary();
            string result    = null;

            foreach (var networkPrefixWithDot in NetworkTranslator.GetConfigPrefixesWithDots(Network))
            {
                var found = configDic.TryGet($"{networkPrefixWithDot}{key}");
                if (found is { })