Struct JsonPosition
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Bayat.Json.Runtime.dll
Syntax
public struct JsonPosition
Constructors
|
Improve this Doc
View Source
JsonPosition(JsonContainerType)
Declaration
public JsonPosition(JsonContainerType type)
Parameters
Fields
|
Improve this Doc
View Source
HasIndex
Declaration
Field Value
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Position
Declaration
Field Value
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
PropertyName
Declaration
public string PropertyName
Field Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
Type
Declaration
public JsonContainerType Type
Field Value
Methods
|
Improve this Doc
View Source
BuildPath(List<JsonPosition>, Nullable<JsonPosition>)
Declaration
public static string BuildPath(List<JsonPosition> positions, JsonPosition? currentPosition)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<JsonPosition> |
positions |
|
System.Nullable<JsonPosition> |
currentPosition |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
CalculateLength()
Declaration
public int CalculateLength()
Returns
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Declaration
public static string FormatMessage(IJsonLineInfo lineInfo, string path, string message)
Parameters
Type |
Name |
Description |
IJsonLineInfo |
lineInfo |
|
System.String |
path |
|
System.String |
message |
|
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
TypeHasIndex(JsonContainerType)
Declaration
public static bool TypeHasIndex(JsonContainerType type)
Parameters
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
WriteTo(StringBuilder)
Declaration
public void WriteTo(StringBuilder sb)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
sb |
|