private static List<object> createDomainContraintList(MetadataAttribute attribute)
{
List<object> list = new List<object>();
foreach (Constraint constraint in attribute.Constraints)
{
if (constraint is DomainConstraint)
{
DomainConstraint domainConstraint = (DomainConstraint)constraint;
domainConstraint.Materialize();
domainConstraint.Items.ForEach(i => list.Add(i.Value));
}
}
return list;
}