DefaultXmlLineInfo Class

The default implementation of the IXmlLineInfo interface.

C#
public sealed class DefaultXmlLineInfo : IXmlLineInfo
Inheritance
DefaultXmlLineInfo
Implements

Constructors

DefaultXmlLineInfo(int, int, bool)

The default implementation of the IXmlLineInfo interface.

DefaultXmlLineInfo(IXmlLineInfo)

Initializes a new instance of the DefaultXmlLineInfo class with the specified IXmlLineInfo.

Properties

NoLineInfo

Gets the IXmlLineInfo representing no line information.

LineNumber
LinePosition

Methods

HasLineInfo()
Equals(object) (Inherited from object)
GetHashCode() (Inherited from object)
GetType() (Inherited from object)
MemberwiseClone() (Inherited from object)
ToString() (Inherited from object)

Constructors Detail

DefaultXmlLineInfo(int, int, bool)

The default implementation of the IXmlLineInfo interface.

C#
public DefaultXmlLineInfo(int lineNumber, int linePosition, bool hasLineInfo)

Parameters

lineNumber
int

The 1-based line number in the XML document.

linePosition
int

The 1-based line position (column) in the XML document.

hasLineInfo
bool

Indicates whether the line information is available.

DefaultXmlLineInfo(IXmlLineInfo)

Initializes a new instance of the DefaultXmlLineInfo class with the specified IXmlLineInfo.

C#
public DefaultXmlLineInfo(IXmlLineInfo info)

Parameters

info
IXmlLineInfo

The location information to be copied.

Properties Detail

NoLineInfo

Gets the IXmlLineInfo representing no line information.

C#
public static IXmlLineInfo NoLineInfo { get; }

Property Value

LineNumber

C#
public int LineNumber { get; }

Property Value

int

Implements

LinePosition

C#
public int LinePosition { get; }

Property Value

int

Implements

Methods Detail

HasLineInfo()

C#
public bool HasLineInfo()

Returns

Implements