C# Класс SysInfo.NameValue

JSON returns Name-Value pairs When show results of queries, create a NameValue obkect for each JSON name-value object The List binds to the Name and Vlaue property of NameValue object list (NameValue.NameValues).
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
NameValues List
NameValuesStack Stack>

Открытые методы

Метод Описание
ClearList ( ) : void
GetNameValues ( string preName, JsonObject oJson ) : void

This is the "Powerhouse" Get all name-value pairs in the object - For each value get its value if simple type - If value is an array get objects in array an recursively call this for each item in the array - If value is an object call this recursiveky.

NameValue ( JsonObject oJsn ) : System

Create obvject from JSON obkect

NameValue ( string preName, int index, IJsonValue>.KeyValuePair oJson_KVP ) : System

Create object from JSON KeyValuePair This is what is used below

NameValue ( string name, string value ) : System

Standard constructor

Описание методов

ClearList() публичный статический Метод

public static ClearList ( ) : void
Результат void

GetNameValues() публичный статический Метод

This is the "Powerhouse" Get all name-value pairs in the object - For each value get its value if simple type - If value is an array get objects in array an recursively call this for each item in the array - If value is an object call this recursiveky.
public static GetNameValues ( string preName, JsonObject oJson ) : void
preName string Text to prepend to name in list
oJson JsonObject The JSON object
Результат void

NameValue() публичный Метод

Create obvject from JSON obkect
public NameValue ( JsonObject oJsn ) : System
oJsn JsonObject The JSON obkect
Результат System

NameValue() публичный Метод

Create object from JSON KeyValuePair This is what is used below
public NameValue ( string preName, int index, IJsonValue>.KeyValuePair oJson_KVP ) : System
preName string Higher level info about this branch
index int If an array item apply index to prepend of name
oJson_KVP IJsonValue>.KeyValuePair
Результат System

NameValue() публичный Метод

Standard constructor
public NameValue ( string name, string value ) : System
name string JSON name of properfty
value string JSON value of property
Результат System

Описание свойств

NameValues публичное статическое свойство

This is the list that is bound to the listbox
public static List NameValues
Результат List

NameValuesStack публичное статическое свойство

public static Stack> NameValuesStack
Результат Stack>