Example #1
0
        public override void SetParameters(AttributeCollection parameters)
        {
            var sc = StringComparer.CurrentCultureIgnoreCase;

            foreach (var attr in parameters)
            {
                if (sc.Equals(attr.Key, "cascade") && !string.IsNullOrWhiteSpace(attr.Value) && !Formatting.Booley(attr.Value))
                {
                    cascade = false;
                }
                if (sc.Equals("no-cascade"))
                {
                    cascade = true;
                }
            }
        }