protected override void DoExecute(IMemberElement element) { if (IsRequired(element)) { element.AddClass(requiredClass); } }
protected override void DoExecute(IMemberElement element) { if (element.ForMember == null) { return; } if (!element.IsTextElement()) { return; } var memberType = element.ForMember.GetPropertyOrFieldType(); if (memberType.IsNumber()) { element.AddClass(numberClass); } else if (memberType == typeof(DateTime) || memberType == typeof(DateTime?)) { element.AddClass(dateClass); } }