SetPropertyValue() public method

public SetPropertyValue ( string name, string value ) : void
name string
value string
return void
Beispiel #1
0
        public static MSBuildPropertyGroup Merge(MSBuildPropertyGroup g1, MSBuildPropertyGroup g2)
        {
            XmlElement           elem = g1.Element.OwnerDocument.CreateElement(null, "PropertyGroup", MSBuildProject.Schema);
            MSBuildPropertyGroup grp  = new MSBuildPropertyGroup(elem);

            foreach (MSBuildProperty prop in g1.Properties)
            {
                grp.SetPropertyValue(prop.Name, prop.Value);
            }
            foreach (MSBuildProperty prop in g2.Properties)
            {
                grp.SetPropertyValue(prop.Name, prop.Value);
            }
            return(grp);
        }
		public static MSBuildPropertyGroup Merge (MSBuildPropertyGroup g1, MSBuildPropertyGroup g2)
		{
			XmlElement elem = g1.Element.OwnerDocument.CreateElement (null, "PropertyGroup", MSBuildProject.Schema);
			MSBuildPropertyGroup grp = new MSBuildPropertyGroup (elem);
			foreach (MSBuildProperty prop in g1.Properties)
				grp.SetPropertyValue (prop.Name, prop.Value);
			foreach (MSBuildProperty prop in g2.Properties)
				grp.SetPropertyValue (prop.Name, prop.Value);
			return grp;
		}