1 write to _sortedKeys
Microsoft.AspNetCore.Components.Endpoints (1)
FormMapping\PrefixResolver.cs (1)
17
_sortedKeys
= ArrayPool<FormKey>.Shared.Rent(count);
7 references to _sortedKeys
Microsoft.AspNetCore.Components.Endpoints (7)
FormMapping\PrefixResolver.cs (7)
13
public bool HasValues => _length > 0 &&
_sortedKeys
!= null;
22
_sortedKeys
[i++] = key;
25
Array.Sort(
_sortedKeys
, 0, count, FormKeyComparer.SortCriteria);
32
return _length > 0 && !(_length == 1 &&
_sortedKeys
[0].Value.Length == 0);
34
return Array.BinarySearch(
_sortedKeys
, 0, _length, new FormKey(currentPrefixBuffer), FormKeyComparer.PrefixCriteria) >= 0;
39
if (
_sortedKeys
!= null)
41
ArrayPool<FormKey>.Shared.Return(
_sortedKeys
);