Example #1
0
        public string[] GetAttributeValues(string attributeName)
        {
            ObjectAttribute attribute = null;

            if (Attributes.TryGetValue(attributeName, out attribute))
            {
                return(attribute.Values);
            }
            return(new string[0]);
        }
Example #2
0
        public string GetAttributeValue(string attributeName, string defaultValue)
        {
            ObjectAttribute attribute = null;

            if (Attributes.TryGetValue(attributeName, out attribute))
            {
                return(attribute.Value);
            }
            return(defaultValue);
        }