You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sequenze edited this page Jun 19, 2017
·
11 revisions
Provides the primitives required to define a tuple.
Inheritance Hierarchy
Object
Syntax
publicabstractinterfaceITuple:IFields
Properties
Name
Description
Size
Returns the size of the tuple.
Item[Int32]
Gets or sets the i'th element of the tuple.
Remarks
ITuple is the base interface of all tuples.
Examples
The following example demonstrates the usage of ITuple, when fetching data from a tuple space.
staticvoidMain(string[]args){FifoSpacets=newFifoSpace();ts.Put("Hello world!");ITupleresult=ts.Query(typeof(string));ts.Put(result);IEnumerable<ITuple>results=ts.QueryAll(typeof(string));foreach(ITupletupleinresults){Console.WriteLine("{0}",tuple[0]);}Console.Read();}/* The following is printed to the console: Hello world! Hello world! */