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
Post a Comment