Example #1
0
 /// <summary>
 /// Creates a new TextPositionInfo instance, copying values from another instance.
 /// </summary>
 public TextPositionInfo(ITextPosition other)
 {
     if (other != null)
     {
         this._filename = other.Filename;
         this._lineNumber = other.LineNumber;
         this._linePosition = other.LinePosition;
     }
 }
Example #2
0
 ///<summary>
 /// Creates a new instance of <see cref="ConfigXmlElement"/>, storing a copy of the passed 
 /// <paramref name="currentTextPositionPositionInfo"/>.
 ///</summary>
 public ConfigXmlElement(ITextPosition currentTextPositionPositionInfo, string prefix, string localName, string namespaceURI, XmlDocument doc) 
     : base(prefix, localName, namespaceURI, doc)
 {
     _textPositionInfo = new TextPositionInfo(currentTextPositionPositionInfo);
 }
 ///<summary>
 /// Creates a new instance of <see cref="ConfigXmlAttribute"/>, storing a copy of the passed 
 /// <paramref name="currentTextPositionPositionInfo"/>.
 ///</summary>
 public ConfigXmlAttribute(ITextPosition currentTextPositionPositionInfo, string prefix, string localName, string namespaceURI, XmlDocument doc) 
     : base(prefix, localName, namespaceURI, doc)
 {
     // TODO: for NET 2.0 may check for "System.Configuration.Internal.IConfigErrorInfo"
     _textPositionInfo = new TextPositionInfo(currentTextPositionPositionInfo);
 }