C# Class NPLMono.NPLObjectProxy

/** NPL object proxy. This is both a smart pointer and accessors // Example 1: Create NPLTable and serialize to string NPLObjectProxy msg = new NPLObjectProxy(); msg["nid"].Assign(10); msg["name"].Assign("value"); msg["tab"]["name1"].Assign("value1"); StringBuilder output = new StringBuilder(); NPLHelper.NPLTableToString(null, msg, output); // Example 2: serialized NPLTable from string. NPLObjectProxy tabMsg = NPLHelper.StringToNPLTable("{nid=10, name=\"value\", tab={name1=\"value1\"}}"); ParaGlobal.applog(String.Format("Example 5: {0}==10, {1}==value, {2}==value1", (double)tabMsg["nid"], (string)tabMsg["name"], (string)(tabMsg["tab"]["name1"])));
Inheritance: System.Collections.IEnumerable
Afficher le fichier Open project: LiXizhi/NPLRuntime Class Usage Examples

Méthodes publiques

Méthode Description
Assign ( NPLObjectProxy value ) : void
Assign ( bool value ) : void
Assign ( double value ) : void
Assign ( int value ) : void
Assign ( string value ) : void
GetEnumerator ( ) : System.Collections.IEnumerator
GetMyType ( ) : NPLObjectType
MakeNil ( ) : void
NPLObjectProxy ( )
NPLObjectProxy ( NPLObjectBase obj )
get ( ) : NPLObjectBase
this ( int nIndex ) : NPLObjectProxy
this ( string sName ) : NPLObjectProxy

Private Methods

Méthode Description
GetField ( string sName ) : NPLObjectProxy

Method Details

Assign() public méthode

public Assign ( NPLObjectProxy value ) : void
value NPLObjectProxy
Résultat void

Assign() public méthode

public Assign ( bool value ) : void
value bool
Résultat void

Assign() public méthode

public Assign ( double value ) : void
value double
Résultat void

Assign() public méthode

public Assign ( int value ) : void
value int
Résultat void

Assign() public méthode

public Assign ( string value ) : void
value string
Résultat void

GetEnumerator() public méthode

public GetEnumerator ( ) : System.Collections.IEnumerator
Résultat System.Collections.IEnumerator

GetMyType() public méthode

public GetMyType ( ) : NPLObjectType
Résultat NPLObjectType

MakeNil() public méthode

public MakeNil ( ) : void
Résultat void

NPLObjectProxy() public méthode

public NPLObjectProxy ( )

NPLObjectProxy() public méthode

public NPLObjectProxy ( NPLObjectBase obj )
obj NPLObjectBase

get() public méthode

public get ( ) : NPLObjectBase
Résultat NPLObjectBase

this() public méthode

public this ( int nIndex ) : NPLObjectProxy
nIndex int
Résultat NPLObjectProxy

this() public méthode

public this ( string sName ) : NPLObjectProxy
sName string
Résultat NPLObjectProxy