Benchmarker.Models.Config.EnvironmentVariablesEqual C# (CSharp) Method

EnvironmentVariablesEqual() static private method

static private EnvironmentVariablesEqual ( string>.IDictionary native, JToken json ) : bool
native string>.IDictionary
json JToken
return bool
		static bool EnvironmentVariablesEqual (IDictionary<string, string> native, JToken json)
		{
			if (native.Count != json.Count ())
				return false;
			foreach (var kv in native) {
				var jsonValue = json.Value<string> (kv.Key);
				if (jsonValue == null)
					return false;
				if (jsonValue != kv.Value)
					return false;
			}
			return true;
		}