private static Dictionary <string, BridgeParameterInfo> BuildParams(XmlNode methodNode) { XmlNodeList paramNodes = methodNode.SelectNodes("parameter"); Dictionary <string, BridgeParameterInfo> parameters = new Dictionary <string, BridgeParameterInfo>(paramNodes.Count); foreach (XmlNode paramNode in paramNodes) { BridgeParameterInfo param = new BridgeParameterInfo(); param.Name = GetAttributeValue(paramNode, "name", true); param.Value = GetAttributeValue(paramNode, "value", false); param.ServerName = GetAttributeValue(paramNode, "serverName", false); string serverOnly = GetAttributeValue(paramNode, "serverOnly", false); param.ServerOnly = (serverOnly != null && string.Equals(serverOnly, "true", StringComparison.OrdinalIgnoreCase)); parameters.Add(param.Name, param); } return(parameters); }
private static Dictionary<string, BridgeParameterInfo> BuildParams(XmlNode methodNode) { XmlNodeList paramNodes = methodNode.SelectNodes("parameter"); Dictionary<string, BridgeParameterInfo> parameters = new Dictionary<string, BridgeParameterInfo>(paramNodes.Count); foreach (XmlNode paramNode in paramNodes) { BridgeParameterInfo param = new BridgeParameterInfo(); param.Name = GetAttributeValue(paramNode, "name", true); param.Value = GetAttributeValue(paramNode, "value", false); param.ServerName = GetAttributeValue(paramNode, "serverName", false); string serverOnly = GetAttributeValue(paramNode, "serverOnly", false); param.ServerOnly = (serverOnly != null && string.Equals(serverOnly, "true", StringComparison.OrdinalIgnoreCase)); parameters.Add(param.Name, param); } return parameters; }