c# - How to ignore custom model binder? -


i have model binder in global.asax:

modelbinders.binders.add(typeof(string), new stringmodelbinder()); 

and have model in want ignore binder 1 of string properties:

public class mymodel {     ...     public string stringprop { get; set; }     ... } 

for instance stringmodelbinder trims string. don't want trim stringprop. how can ignore binder in such case?

edited: not looking solution trim string. i'm looking solution ignore trimming string.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -