Пример #1
0
 public static Tag CreateInput(InputTypes type, PropertyInfo propertyInfo, object value = null)
 {
     if (propertyInfo.HasCustomAttributeOfType <TemplateAttribute>(out TemplateAttribute attribute))
     {
         InputProvider.CreateFromTemplate(attribute, value);
     }
     return(InputTag.OfType(type, value)
            .SetAttribute("name", propertyInfo.Name));
 }
Пример #2
0
 public override Tag CreateInput(PropertyInfo propertyInfo, object data = null)
 {
     return(InputProvider.CreateInput(InputTypes.Text, propertyInfo, data));
 }
 public virtual Tag CreateInput(object data)
 {
     return(InputProvider.CreateInput(InputTypes.Text, data.GetType().Name, data));
 }