How To Add Values To The Shared Dictionary

Toolkits.HowToAddValuesToTheSharedDictionary History

Hide minor edits - Show changes to output

Added lines 1-33:
[[Toolkits.Networking | << Back to the .Networking page]]
\\
\\


'''Integer:''' places an integer into a shared dictionary called SD at the path /value:

(:source lang=csharp tabwidth=2 :) [=
this.SD["/value"] = 5;
=]


'''String:''' places a string into a shared dictionary called SD at the path /value:

(:source lang=csharp tabwidth=2 :) [=
this.SD["/value"] = "hello";
=]

'''Vector:''' creates a vector and places it into a shared dictionary called SD at the path /value:

(:source lang=csharp tabwidth=2 :) [=
SharedDictionary.Vector v = new SharedDictionary.Vector();
this.SD["/value"] = v;
=]


'''Vector Elements:''' places an integer into the last element of a vector. The vector is in the shared dictionary called SD at the path /value.

(:source lang=csharp tabwidth=2 :) [=
this.SD["value#-0"] = element;
=]

\\