Sofu Documentation
value Method (index)
NamespacesSofu.SofuListvalue(Int32)
Retrives a specifc Sofu.Value from the List given by index.
Declaration Syntax
C#
public Value value(
	int index
)
Parameters
index (Int32)
Position of the requested Value
Return Value
The requested Value
Examples
CopyC#
Sofu.Sofu.List list = new Sofu.Sofu.List();
list.AppendElement(new Sofu.Sofu.Value("1"));
list.AppendElement(new Sofu.Sofu.Map());
list.AppendElement(new Sofu.Sofu.List());
Sofu.Sofu.Map mymap = list.value(0);
try {
    Sofu.Sofu.List myothermap = list.value(3);
}
catch (SofuNotValueException e) {
    Console.WriteLine("Third Element of \"list\" is not a Value");
    Console.WriteLine(e.message);
}
Exceptions
ExceptionCondition
SofuNoElementExceptionWill throw SofuNoElementException when the Index is out of the range of the List
SofuNotValueExceptionThrows a SofuNotValueException if the requested element is not a Value

Assembly: Sofu (Module: Sofu) Version: 0.2.1.0 (0.2.1.0)