Example #1
0
        public static string GetVisibilityCriteria(this VisibilityCriteriaLeftOperand leftOperand, object rightOperand, string path = "")
        {
            if (leftOperand == VisibilityCriteriaLeftOperand.IsAssignableFromModelListVideEditorType)
            {
                rightOperand = ((Type)rightOperand).AssemblyQualifiedName;
            }

            var criteria = string.Format(leftOperand.AsString(EnumFormat.Description), path);

            return(CriteriaOperator.Parse(criteria, rightOperand).ToString());
        }
Example #2
0
        public static string GetVisibilityCriteria(this VisibilityCriteriaLeftOperand leftOperand, object rightOperand, string path = "")
        {
            var criteria = string.Format(leftOperand.AsString(EnumFormat.Description) !, path);

            return(CriteriaOperator.Parse(criteria, rightOperand).ToString());
        }