Sofu Documentation
map Method (key)
NamespacesSofu.SofuMapmap(String)
Retrives a specifc Sofu.Map from this Map indentified by key.
Declaration Syntax
C#
public Map map(
	string key
)
Parameters
key (String)
Identifies the Map to get
Return Value
The Map at key
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu");
try {
    file.map("Output").Write("output.sofu");
}
catch (SofuNoElementException e) {
    Sofu.Sofu.Map output = new Sofu.Sofu.Map();
    output.Write("output.sofu");
}
catch (SofuNotMapException e) {
    Console.Out.WriteLine("Can't generate output file, map expected!");
}
Exceptions
ExceptionCondition
SofuNoElementExceptionWill throw SofuNoElementException when the Key is not in this Map
SofuNotMapExceptionThrows a SofuNotMapException if the requested element is not a Map

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