예제 #1
0
        /// <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);
        }
예제 #2
0
        /// <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 : "");
        }