10 implementations of ContainsPrefix
BasicWebSite (1)
ValueProviders\CustomValueProviderFactory.cs (1)
34
public bool
ContainsPrefix
(string prefix) => Values.ContainsKey(prefix);
Microsoft.AspNetCore.Mvc.Core (8)
ModelBinding\Binders\HeaderModelBinder.cs (1)
199
public bool
ContainsPrefix
(string prefix)
ModelBinding\BindingSourceValueProvider.cs (1)
64
public abstract bool
ContainsPrefix
(string prefix);
ModelBinding\CompositeValueProvider.cs (1)
96
public virtual bool
ContainsPrefix
(string prefix)
ModelBinding\ElementalValueProvider.cs (1)
25
public bool
ContainsPrefix
(string prefix)
ModelBinding\FormFileValueProvider.cs (1)
63
public bool
ContainsPrefix
(string prefix) => PrefixContainer.ContainsPrefix(prefix);
ModelBinding\FormValueProvider.cs (1)
67
public override bool
ContainsPrefix
(string prefix)
ModelBinding\JQueryValueProvider.cs (1)
61
public override bool
ContainsPrefix
(string prefix)
ModelBinding\QueryStringValueProvider.cs (1)
60
public override bool
ContainsPrefix
(string prefix)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
SimpleValueProvider.cs (1)
23
public bool
ContainsPrefix
(string prefix)
31 references to ContainsPrefix
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\Binders\CollectionModelBinder.cs (1)
112
if (!bindingContext.ValueProvider.
ContainsPrefix
(bindingContext.ModelName))
ModelBinding\Binders\ComplexObjectModelBinder.cs (2)
604
if (bindingContext.ValueProvider.
ContainsPrefix
(bindingContext.ModelName))
640
if (bindingContext.ValueProvider.
ContainsPrefix
(bindingContext.ModelName))
ModelBinding\Binders\ComplexTypeModelBinder.cs (1)
405
if (bindingContext.ValueProvider.
ContainsPrefix
(bindingContext.ModelName))
ModelBinding\CompositeValueProvider.cs (1)
100
if (this[i].
ContainsPrefix
(prefix))
ModelBinding\ParameterBinder.cs (1)
121
else if (modelBindingContext.ValueProvider.
ContainsPrefix
(parameter.Name))
Microsoft.AspNetCore.Mvc.Core.Test (25)
ControllerBaseTest.cs (3)
2788
.Setup(v => v.
ContainsPrefix
(prefix))
2822
.Setup(v => v.
ContainsPrefix
(prefix))
2852
valueProvider.Setup(v => v.
ContainsPrefix
(""))
ModelBinding\Binders\ComplexObjectModelBinderTest.cs (7)
97
.Setup(provider => provider.
ContainsPrefix
("SimpleContainer.Simple.Name"))
158
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
186
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
212
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
217
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
250
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
255
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
ModelBinding\Binders\ComplexTypeModelBinderTest.cs (9)
96
.Setup(provider => provider.
ContainsPrefix
("SimpleContainer.Simple.Name"))
157
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
185
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
211
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
216
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
249
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
254
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
285
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))
1009
.Setup(provider => provider.
ContainsPrefix
("theModel.Name"))
ModelBinding\Binders\HeaderModelBinderTests.cs (1)
257
.Setup(vp => vp.
ContainsPrefix
(It.IsAny<string>()))
ModelBinding\EnumerableValueProviderTest.cs (4)
36
var result = valueProvider.
ContainsPrefix
(string.Empty);
49
var result = valueProvider.
ContainsPrefix
(string.Empty);
67
Assert.True(valueProvider.
ContainsPrefix
(prefix));
77
var result = valueProvider.
ContainsPrefix
("biff");
ModelBinding\ParameterBinderTest.cs (1)
807
.Setup(o => o.
ContainsPrefix
(It.IsAny<string>()))