sealed class
|
ValidatePath
|
implements
|
IComparable<ValidatePath>
|
||
IEquatable<ValidatePath>
|
An empty path.
public
static
readonly
field
|
None
|
||
type
|
ValidatePath
|
The object that has caused a validation error or warning.
public
property
|
Culprit
{
get
}
|
||
type
|
ICodeRange
|
||
value
|
The
culprit
object
or
null
if
no
object
has
been
reported. |
Returns the entry value of the first path element.
public
property
|
Entry
{
get
}
|
||
type
|
string
|
||
value
|
The
entry
value
or
null
if
Type
is
not
Entry.
|
Returns the index of the first path element.
public
property
|
Index
{
get
}
|
||
type
|
int32
|
||
value
|
The
index
or
-1
if
Type
is
not
Index.
|
Returns the length of this path.
public
property
|
Length
{
get
}
|
||
type
|
int32
|
||
value
|
|
The length, in path elements (see ValidatePathElement). |
Returns the member name of the first path element.
public
property
|
Member
{
get
}
|
||
type
|
string
|
||
value
|
The
member
name
or
null
if
Type
is
not
Member.
|
Returns the type of the first element of this path.
public
property
|
Type
{
get
}
|
||
type
|
ValidatePathElement
|
||
value
|
The path element type. |
Compares this object with the given one.
[Pure]
|
||||
public
method
|
CompareTo
(ValidatePath other)
|
|||
type
|
int32
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
<
0
:
if
this
object
is
less
than
other, = 0 : if this object is equal to other, > 0 : if this object is greater than other. |
|||
implements
|
IComparable.CompareTo
|
Concatenates the given paths.
public
static
method
|
Concat
(ValidatePath first,
ValidatePath second)
|
||
type
|
ValidatePath
|
||
params
|
first
|
First
path
value
or
null . |
|
second
|
Second
path
value
or
null . |
||
returns
|
The
resulting
path
value
or
null
if
empty. |
Removes the first element from this path.
public
method
|
CutFirst
()
|
||
type
|
ValidatePath
|
||
returns
|
The
resulting
path
or
null
if
empty. |
Compares this object with the given one.
[Pure]
|
||||
public
method
|
Equals
(ValidatePath other)
|
|||
type
|
bool
|
|||
params
|
other
|
The object to compare to. | ||
returns
|
true
if
this
object
is
equal
to
other,
false
if
not.
|
|||
implements
|
IEquatable.Equals
|
[Pure]
|
||||
public
override
method
|
ToString
()
|
|||
type
|
string
|
Formats this validation path as a string.
public
method
|
ToString
(StringBuilder sb)
|
||
params
|
sb
|
[not-null]
|
The string builder to use. |