HtmlForgeX

API Reference

Class

FormBinder

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers static

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: Boolean

Type Parameters

T

Parameters

form IDictionary<String, String> requiredposition: 0
target T requiredposition: 1
errors List<String> requiredposition: 2
namePrefix String = null optionalposition: 3
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} required
target ``0 required
errors System.Collections.Generic.List{System.String}@ required
namePrefix System.String required