BExIS.Web.Shell.Areas.DCM.Models.MetadataAttributeModel.createDomainContraintList C# (CSharp) Méthode

createDomainContraintList() private static méthode

private static createDomainContraintList ( MetadataAttribute attribute ) : List
attribute BExIS.Dlm.Entities.MetadataStructure.MetadataAttribute
Résultat List
        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;
        }