C# Class CK.Core.JSONVisitor.Parent

Describes a parent object: it is the name of a property and its index or the index in a array.
Show file Open project: SimpleGitVersion/SGV-Net

Public Properties

Property Type Description
Index int
PropertyName string

Public Methods

Method Description
Parent ( string propertyName, int index ) : System

Initializes a new parent object.

ToString ( ) : string

Overridden to return either PropertyName or [Index].

Method Details

Parent() public method

Initializes a new parent object.
public Parent ( string propertyName, int index ) : System
propertyName string Name of the property. Null for an array entry.
index int Index of the property or index in an array.
return System

ToString() public method

Overridden to return either PropertyName or [Index].
public ToString ( ) : string
return string

Property Details

Index public property

The index in the array or the property index (the count of properties that appear before this one in the object definition).
public int Index
return int

PropertyName public property

The name of the property or null if this is an array entry.
public string PropertyName
return string