Emumerator for foreach
Declaration Syntax
C# |
public IEnumerator<KeyValuePair<string, SofuObject>> GetEnumerator()
Return Value
The Enmurator
Examples
CopyC#
Sofu.Sofu.Map file = SofuReader.LoadFile("file.sofu"); foreach (KeyValuePair<string,Sofu.SofuObject> entry in file) { Console.Out.Write(entry.Key); //Splits one .sofu into Sub Trees. Console.Out.Write(" is a "); Console.Out.WriteLine(entry.Value.TypeString()); }