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