DnsFilterParseDiagnostic Class

Describes a filter list line that did not produce a rule.

public sealed class DnsFilterParseDiagnostic

Properties

NameDescription
DetailGets additional context, such as the offending modifier name. May be null.
ErrorGets the reason the line was skipped.
LineGets the text of the offending line.
LineNumberGets the 1-based line number within the parsed list.

Gets additional context, such as the offending modifier name. May be null.

public string? Detail { get; }

Property value

string?

Gets the reason the line was skipped.

public DnsFilterParseError Error { get; }

Property value

DnsFilterParseError

Gets the text of the offending line.

public string Line { get; }

Property value

string

Gets the 1-based line number within the parsed list.

public int LineNumber { get; }

Property value

int

Methods

NameDescription
ToString()Returns a string that represents the current object.

Returns a string that represents the current object.

public override string ToString()

Returns

string A string that represents the current object.