using System.Xml; namespace Be.TimVW.Tools { /// /// Represents a reference to an Assembly File in a ProjectFile /// class AssemblyReference { #region Private Fields private XmlNode xmlNode; #endregion #region Constructors public AssemblyReference(XmlNode xmlNode) { this.xmlNode = xmlNode; } #endregion #region Public Properties /// /// Gets and sets the AssemblyName /// public string AssemblyName { get { return this.xmlNode.Attributes["Include"].InnerText; } set { this.xmlNode.Attributes["Include"].InnerText = value; } } /// /// Gets and sets the SpecificVersion /// public bool SpecificVersion { get { return bool.Parse(this.xmlNode.ChildNodes[0].InnerText); } set { this.xmlNode.ChildNodes[0].InnerText = value.ToString(); } } /// /// Gets and sets the HintPath /// public string HintPath { get { return this.xmlNode.ChildNodes[1].InnerText; } set { this.xmlNode.ChildNodes[1].InnerText = value; } } #endregion } }