BExIS.Web.Shell.Areas.RPM.Models.DataAttributeManagerModel.getFormalDescriptions C# (CSharp) Method

getFormalDescriptions() private method

private getFormalDescriptions ( DataAttribute dataAttribute ) : string
dataAttribute BExIS.Dlm.Entities.DataStructure.DataAttribute
return string
        private string getFormalDescriptions(DataAttribute dataAttribute)
        {
            string FormalDescriptions = "";
            BExIS.Dlm.Entities.DataStructure.Constraint temp = null;

            if (dataAttribute.Constraints != null && dataAttribute.Constraints.Count() > 0)
            {
                foreach (BExIS.Dlm.Entities.DataStructure.Constraint c in dataAttribute.Constraints)
                {
                    temp = c;
                    temp.Materialize();

                    if (FormalDescriptions == "")
                        FormalDescriptions = temp.FormalDescription;
                    else
                        FormalDescriptions = FormalDescriptions + "\r\n" + temp.FormalDescription;
                }
            }

            return FormalDescriptions;
        }