public FormatExpression IfThePropertyNameMatches(Expression <Func <string, bool> > propertyNameFilter,
                                                             string description = "")
            {
                var rule = new DateFormattingRule {
                    Description = description,
                    Filter      = propertyNameFilter,
                    Format      = _format
                };

                _parent._formattingRules.AddRule(rule);

                return(this);
            }
 public void AddRule(DateFormattingRule rule)
 {
     _rules.Add(rule);
 }
Exemple #3
0
 public void AddRule(DateFormattingRule rule)
 {
     _rules.Add(rule);
 }