8 implementations of IModelBinder
System.Web (8)
ModelBinding\BinaryDataModelBinderProvider.cs (1)
24private class ByteArrayExtensibleModelBinder : IModelBinder {
ModelBinding\CollectionModelBinder`1.cs (1)
6public class CollectionModelBinder<TElement> : IModelBinder {
ModelBinding\ComplexModelBinder.cs (1)
3public sealed class ComplexModelBinder : IModelBinder {
ModelBinding\DefaultModelBinder.cs (1)
4public class DefaultModelBinder : IModelBinder {
ModelBinding\KeyValuePairModelBinder`2.cs (1)
4public sealed class KeyValuePairModelBinder<TKey, TValue> : IModelBinder {
ModelBinding\MutableObjectModelBinder.cs (1)
9public class MutableObjectModelBinder : IModelBinder {
ModelBinding\TypeConverterModelBinder.cs (1)
5public sealed class TypeConverterModelBinder : IModelBinder {
ModelBinding\TypeMatchModelBinder.cs (1)
3public sealed class TypeMatchModelBinder : IModelBinder {
66 references to IModelBinder
System.Web (66)
ModelBinding\ArrayModelBinderProvider.cs (2)
6public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) { 12return (IModelBinder)Activator.CreateInstance(typeof(ArrayModelBinder<>).MakeGenericType(elementType));
ModelBinding\BinaryDataModelBinderProvider.cs (1)
16public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\CollectionModelBinder`1.cs (2)
35IModelBinder childBinder = bindingContext.ModelBinderProviders.GetBinder(modelBindingExecutionContext, childBindingContext); 90IModelBinder childBinder = bindingContext.ModelBinderProviders.GetBinder(modelBindingExecutionContext, innerBindingContext);
ModelBinding\CollectionModelBinderProvider.cs (1)
6public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\CollectionModelBinderUtil.cs (2)
47public static IModelBinder GetGenericBinder(Type supportedInterfaceType, Type newInstanceType, Type openBinderType, ModelMetadata modelMetadata) { 49return (typeArguments != null) ? (IModelBinder)Activator.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null;
ModelBinding\ComplexModelBinder.cs (1)
16IModelBinder propertyBinder = bindingContext.ModelBinderProviders.GetBinder(modelBindingExecutionContext, propertyBindingContext);
ModelBinding\ComplexModelBinderProvider.cs (1)
9public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\DefaultModelBinder.cs (1)
17IModelBinder binder = Providers.GetBinder(modelBindingExecutionContext, bindingContext);
ModelBinding\DictionaryModelBinderProvider.cs (1)
6public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\GenericModelBinderProvider.cs (7)
7private readonly Func<Type[], IModelBinder> _modelBinderFactory; 10public GenericModelBinderProvider(Type modelType, IModelBinder modelBinder) { 42return (IModelBinder)Activator.CreateInstance(closedModelBinderType); 46public GenericModelBinderProvider(Type modelType, Func<Type[], IModelBinder> modelBinderFactory) { 71public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) { 99if (!typeof(IModelBinder).IsAssignableFrom(modelBinderType)) { 100throw Error.Common_TypeMustImplementInterface(modelBinderType, typeof(IModelBinder), "modelBinderType");
ModelBinding\KeyValuePairModelBinderProvider.cs (1)
6public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\KeyValuePairModelBinderUtil.cs (1)
11IModelBinder binder = parentBindingContext.ModelBinderProviders.GetBinder(modelBindingExecutionContext, propertyBindingContext);
ModelBinding\ModelBinderDictionary.cs (20)
7public class ModelBinderDictionary : IDictionary<Type, IModelBinder> { 9private IModelBinder _defaultBinder; 10private readonly Dictionary<Type, IModelBinder> _innerDictionary = new Dictionary<Type, IModelBinder>(); 27public IModelBinder DefaultBinder { 41return ((IDictionary<Type, IModelBinder>)_innerDictionary).IsReadOnly; 52public IModelBinder this[Type key] 56IModelBinder binder; 65public ICollection<IModelBinder> Values { 71public void Add(KeyValuePair<Type, IModelBinder> item) { 72((IDictionary<Type, IModelBinder>)_innerDictionary).Add(item); 76public void Add(Type key, IModelBinder value) 85public bool Contains(KeyValuePair<Type, IModelBinder> item) { 86return ((IDictionary<Type, IModelBinder>)_innerDictionary).Contains(item); 93public void CopyTo(KeyValuePair<Type, IModelBinder>[] array, int arrayIndex) { 94((IDictionary<Type, IModelBinder>)_innerDictionary).CopyTo(array, arrayIndex); 134public IEnumerator<KeyValuePair<Type, IModelBinder>> GetEnumerator() { 138public bool Remove(KeyValuePair<Type, IModelBinder> item) { 139return ((IDictionary<Type, IModelBinder>)_innerDictionary).Remove(item); 146public bool TryGetValue(Type key, out IModelBinder value) {
ModelBinding\ModelBinderProvider.cs (1)
4public abstract IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext);
ModelBinding\ModelBinderProviderCollection.cs (12)
17public IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) { 36internal IModelBinder GetRequiredBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) { 37IModelBinder binder = GetBinder(modelBindingExecutionContext, bindingContext); 66public void RegisterBinderForGenericType(Type modelType, IModelBinder modelBinder) { 70public void RegisterBinderForGenericType(Type modelType, Func<Type[], IModelBinder> modelBinderFactory) { 78public void RegisterBinderForType(Type modelType, IModelBinder modelBinder) { 82internal void RegisterBinderForType(Type modelType, IModelBinder modelBinder, bool suppressPrefixCheck) { 89public void RegisterBinderForType(Type modelType, Func<IModelBinder> modelBinderFactory) { 120else if (typeof(IModelBinder).IsAssignableFrom(attr.BinderType)) { 122IModelBinder binderInstance = (IModelBinder)SecurityUtils.SecureCreateInstance(closedBinderType); 127attr.BinderType, typeof(ModelBinderProvider), typeof(IModelBinder));
ModelBinding\ModelBinderUtil.cs (2)
33public static IModelBinder GetPossibleBinderInstance(Type closedModelType, Type openModelType, Type openBinderType) { 35return (typeArguments != null) ? (IModelBinder)Activator.CreateInstance(openBinderType.MakeGenericType(typeArguments)) : null;
ModelBinding\MutableObjectModelBinder.cs (1)
79IModelBinder complexModelBinder = bindingContext.ModelBinderProviders.GetRequiredBinder(modelBindingExecutionContext, complexModelBindingContext);
ModelBinding\MutableObjectModelBinderProvider.cs (1)
5public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\SimpleModelBinderProvider.cs (4)
7private readonly Func<IModelBinder> _modelBinderFactory; 10public SimpleModelBinderProvider(Type modelType, IModelBinder modelBinder) { 22public SimpleModelBinderProvider(Type modelType, Func<IModelBinder> modelBinderFactory) { 45public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\TypeConverterModelBinderProvider.cs (1)
7public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
ModelBinding\TypeMatchModelBinderProvider.cs (1)
7public override IModelBinder GetBinder(ModelBindingExecutionContext modelBindingExecutionContext, ModelBindingContext bindingContext) {
UI\Page.cs (1)
546IModelBinder binder = ModelBinders.Binders.DefaultBinder;
UI\WebControls\ModelDataSourceView.cs (1)
968IModelBinder binder = ModelBinders.Binders.DefaultBinder;