Sofu Documentation
HasAttribute Method (key)
NamespacesSofu.SofuMapHasAttribute(String)
Tests if an element exists in this Map.
Declaration Syntax
C#
public bool HasAttribute(
	string key
)
Parameters
key (String)
Name of the element to look for
Return Value
True if the attribute is there, false otherwise
Examples
CopyC#
Sofu.Sofu.Map mymap = SofuReader.LoadFile("keys.sofu");
int key = Console.ReadKey();
if (mymap.HasAttribute(key.ToString())) {
    Console.WriteLine(mymap.value(key.ToString()).ToString());
}

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