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).
파일 보기 프로젝트 열기: djaus2/IoTSysInfo 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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>