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