/// <summary> /// </summary> /// <param name="model">The object to unbind to</param> /// <param name="exceptions">Comma seperated list of properties to exclude</param> public FormVariableBinder(object model, string exceptions) { FormVarPropertySeparator = "."; Prefixes = ""; BindingErrors = new BindingErrors(); PropertyExceptionList = new List<string>(); Model = model; if (exceptions != null) PropertyExceptionList.AddRange(exceptions.Split(',')); }
/// <summary> /// </summary> /// <param name="model">The object to unbind to</param> /// <param name="exceptions">Comma seperated list of properties to exclude</param> public FormVariableBinder(object model, string exceptions) { FormVarPropertySeparator = "."; Prefixes = ""; BindingErrors = new BindingErrors(); PropertyExceptionList = new List <string>(); Model = model; if (exceptions != null) { PropertyExceptionList.AddRange(exceptions.Split(',')); } }