API Reference
Class
FormBinder
Simple form-to-object binder for flat form posts. Supports primitives, enums, and nullable primitives.
Inheritance
- Object
- FormBinder
Methods
public static Boolean TryBind<T>(IDictionary<String, String> form, T target, out List<String> errors, String namePrefix = null) #Returns:
BooleanType Parameters
- T
Parameters
- form IDictionary<String, String>
- target T
- errors List<String>
- namePrefix String = null
TryBind``1(System.Collections.Generic.IDictionary{System.String,System.String} form, ``0 target, System.Collections.Generic.List{System.String}@ errors, System.String namePrefix) #Binds flat form data to an object of type T (best-effort; only simple types supported initially).
Parameters
- form System.Collections.Generic.IDictionary{System.String,System.String}
- target ``0
- errors System.Collections.Generic.List{System.String}@
- namePrefix System.String