3 instantiations of ModelStateNode
Microsoft.AspNetCore.Mvc.Abstractions (3)
ModelBinding\ModelStateDictionary.cs (3)
64
_root = new
ModelStateNode
(subKey: emptySegment)
905
modelStateNode = new
ModelStateNode
(subKey);
917
modelStateNode = new
ModelStateNode
(subKey);
27 references to ModelStateNode
Microsoft.AspNetCore.Mvc.Abstractions (27)
ModelBinding\ModelStateDictionary.cs (27)
36
private readonly
ModelStateNode
_root;
355
var
modelState = GetOrAddNode(key);
377
var
item = GetNode(key);
409
var
modelState = GetOrAddNode(key);
429
var
modelState = GetOrAddNode(key);
454
var
target = GetOrAddNode(source.Key);
475
var
modelState = GetOrAddNode(key);
527
private
ModelStateNode
? GetNode(string key)
529
var
current = _root;
550
private
ModelStateNode
GetOrAddNode(string key)
560
var
current = _root;
620
private ModelValidationState? GetValidity(
ModelStateNode
? node, int currentDepth)
679
var
modelState = GetOrAddNode(key);
718
var
node = GetNode(key);
735
var
result = GetNode(key);
837
public List<
ModelStateNode
>? ChildNodes { get; set; }
875
public
ModelStateNode
? GetNode(StringSegment subKey)
877
ModelStateNode
? modelStateNode = null;
895
public
ModelStateNode
GetOrAddNode(StringSegment subKey)
897
ModelStateNode
modelStateNode;
904
ChildNodes = new List<
ModelStateNode
>(1);
1005
private readonly
ModelStateNode
? _rootNode;
1006
private
ModelStateNode
_modelStateNode;
1007
private List<
ModelStateNode
>? _nodes;
1053
_nodes = new List<
ModelStateNode
> { _rootNode };
1070
var
node = _nodes[0];
1083
var
currentChild = node.ChildNodes[_index];