public static CardAttribute Register(string attributeName)
{
if (_attributeNames == null)
{
_attributeNames = new Dictionary<string, CardAttribute>();
}
if (_attributeNames.ContainsKey(attributeName))
{
throw new DuplicateAttributeKeyException(attributeName);
}
var attr = new CardAttribute(attributeName);
_attributeNames.Add(attributeName, attr);
return attr;
}