public static XElement BuildXElementConfig(CiladorConfigType config, params Tuple<string, string>[] fodyWeaverTaskProperties) { Contract.Requires(config != null); Contract.Ensures(Contract.Result<XElement>() != null); var xmlConfig = new XElement("Cilador", config.ToXElement()); if(fodyWeaverTaskProperties != null && fodyWeaverTaskProperties.Length > 0) { foreach(var property in fodyWeaverTaskProperties) { xmlConfig.Add(new XAttribute(property.Item1, property.Item2)); } } return xmlConfig; }
public static XElement BuildXElementConfig(CiladorConfigType config, params Tuple <string, string>[] fodyWeaverTaskProperties) { Contract.Requires(config != null); Contract.Ensures(Contract.Result <XElement>() != null); var xmlConfig = new XElement("Cilador", config.ToXElement()); if (fodyWeaverTaskProperties != null && fodyWeaverTaskProperties.Length > 0) { foreach (var property in fodyWeaverTaskProperties) { xmlConfig.Add(new XAttribute(property.Item1, property.Item2)); } } return(xmlConfig); }