GatewayParameterBinding[] ToBinding(Gateway gw, Dictionary <string, string> map) { return(map.Select(x => gw.CreateGatewayParameterBinding(PhoneSystem.Root.GetGatewayParameterByName(x.Key), PhoneSystem.Root.GetGatewayParameterValueByName(x.Value))).ToArray()); }