1 override of IsTopLevelObject
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\DefaultModelBindingContext.cs (1)
106
public override bool
IsTopLevelObject
5 writes to IsTopLevelObject
Microsoft.AspNetCore.Mvc.Core (1)
ModelBinding\Binders\HeaderModelBinder.cs (1)
88
bindingContext.
IsTopLevelObject
= isTopLevelObject;
Microsoft.AspNetCore.Mvc.Core.Test (4)
ModelBinding\Binders\FormFileModelBinderTest.cs (4)
95
bindingContext.
IsTopLevelObject
= false;
137
bindingContext.
IsTopLevelObject
= false;
172
bindingContext.
IsTopLevelObject
= false;
208
bindingContext.
IsTopLevelObject
= false;
19 references to IsTopLevelObject
Microsoft.AspNetCore.Mvc.Core (19)
ModelBinding\Binders\BodyModelBinder.cs (1)
97
if (bindingContext.
IsTopLevelObject
)
ModelBinding\Binders\CollectionModelBinder.cs (1)
118
if (bindingContext.
IsTopLevelObject
)
ModelBinding\Binders\ComplexObjectModelBinder.cs (5)
117
bindingContext.
IsTopLevelObject
&&
147
if (!bindingContext.
IsTopLevelObject
&&
258
else if (!bindingContext.
IsTopLevelObject
&&
350
else if (!bindingContext.
IsTopLevelObject
&&
509
var isTopLevelObject = bindingContext.
IsTopLevelObject
;
ModelBinding\Binders\ComplexTypeModelBinder.cs (5)
125
else if (!bindingContext.
IsTopLevelObject
&&
182
bindingContext.
IsTopLevelObject
&&
212
if (!bindingContext.
IsTopLevelObject
&&
314
var isTopLevelObject = bindingContext.
IsTopLevelObject
;
477
if (!bindingContext.
IsTopLevelObject
)
ModelBinding\Binders\DictionaryModelBinder.cs (2)
133
if (bindingContext.
IsTopLevelObject
)
148
if (bindingContext.
IsTopLevelObject
)
ModelBinding\Binders\FormFileModelBinder.cs (2)
60
var modelName = bindingContext.
IsTopLevelObject
93
if (postedFiles.Count == 0 && !bindingContext.
IsTopLevelObject
)
ModelBinding\Binders\HeaderModelBinder.cs (2)
77
var isTopLevelObject = bindingContext.
IsTopLevelObject
;
168
if (!bindingContext.
IsTopLevelObject
&& values.Length == 0)
ModelBinding\Binders\KeyValuePairModelBinder.cs (1)
82
if (bindingContext.
IsTopLevelObject
)