/// <summary> /// Returns the attribute definition with <code>key</code>. /// </summary> /// <param name="key">The key of the attribute definition.</param> public AbstractAttributeDefinition GetDefinition(ushort key) { AbstractAttributeDefinition result; return(AllAttributesDict.TryGetValue(key, out result) ? result : null); }
/// <summary> ///Returns the name of the attribute definition specified by <code>key</code>. /// </summary> /// <param name="key">The key of the attribute definition.</param> public string GetName(ushort key) { AbstractAttributeDefinition def; return(AllAttributesDict.TryGetValue(key, out def) ? def.Description : ""); }