GooglePlayInstant/Editor/QuickDeploy/HttpRequestHelper.cs
/// <summary>
/// Combines two dictionaries into a single dictionary. Values in the second argument override values of the
/// first argument for every key that is present in both dictionaries.
/// </summary>
Combines two dictionaries into a single dictionary. Values in the second argument override values of the
first argument for every key that is present in both dictionaries.
Combines two dictionaries into a single dictionary . Values in the second argument override values of the first argument for every key that is present in both dictionaries .
internal static Dictionary<string, string> GetCombinedDictionary(Dictionary<string, string> firstDictionary,
            Dictionary<string, string> secondDictionary)
        {
            var combinedDictionary = new Dictionary<string, string>();
            if (firstDictionary != null)
            {
                foreach (var pair in firstDictionary)
                {
                    combinedDictionary[pair.Key] = pair.Value;
                }
            }
            if (secondDictionary != null)
            {
                foreach (var pair in secondDictionary)
                {
                    combinedDictionary[pair.Key] = pair.Value;
                }
            }
            return combinedDictionary;
        }
internal static Dictionary < string , string > GetCombinedDictionary ( Dictionary < string , string > firstDictionary , Dictionary < string , string > secondDictionary ) { var combinedDictionary = new Dictionary < string , string > ( ) ; if ( firstDictionary != null ) { foreach ( var pair in firstDictionary ) { combinedDictionary [ pair . Key ] = pair . Value ; } } if ( secondDictionary != null ) { foreach ( var pair in secondDictionary ) { combinedDictionary [ pair . Key ] = pair . Value ; } } return combinedDictionary ; }
Combines two dictionaries into a single dictionary.
Combines two dictionaries into a single dictionary .
firstDictionary
Dictionary<string, string>
secondDictionary
Dictionary<string, string>