489 references to Resize
dotnet-format (2)
Commands\FormatCommandCommon.cs (2)
261Array.Resize(ref subject, 0); 275Array.Resize(ref subject, subject.Length + 1);
dotnet-svcutil-lib (6)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (1)
656Array.Resize<DataContract>(ref s_dataContractCache, newSize);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ObjectReferenceStack.cs (2)
32Array.Resize<object>(ref _objectArray, _objectArray.Length * 2); 67Array.Resize<bool>(ref _isReferenceArray, _isReferenceArray.Length * 2);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ScopedKnownTypes.cs (1)
20Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2);
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlDictionary.cs (1)
62Array.Resize(ref _strings, newSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (1)
1386Array.Resize<XmlAttribute>(ref attributes, i + 1);
dotnet-user-jwts (1)
_generated\0\BindingExtensions.g.cs (1)
88Array.Resize(ref instance, originalCount + temp1.Count);
EventSourceGenerator (1)
EventSourceGenerator.Parser.cs (1)
189Array.Resize(ref bytes, 16);
GenerateDocumentationAndConfigFiles (12)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length);
ILCompiler.Compiler (5)
Compiler\DependencyAnalysis\DehydratedDataNode.cs (1)
104Array.Resize(ref relocSort, lastProfitableReloc);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
ILCompiler.MetadataTransform (2)
Internal\Metadata\NativeFormat\Writer\NativeMetadataWriter.cs (1)
491Array.Resize(ref _array, 2 * _array.Length);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
ILCompiler.ReadyToRun (6)
Compiler\PettisHansenSort\DisjointSetForest.cs (1)
35Array.Resize(ref _nodes, NumNodes * 2);
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
427Array.Resize(ref _code, (int)codeSize);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
ILCompiler.RyuJit (6)
Compiler\DependencyAnalysis\MethodCodeNode.cs (1)
275Array.Resize(ref sequencePoints, newLength);
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\PettisHansenSort\DisjointSetForest.cs (1)
35Array.Resize(ref _nodes, NumNodes * 2);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (1)
427Array.Resize(ref _code, (int)codeSize);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
ILCompiler.TypeSystem (7)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\MetadataVirtualMethodAlgorithm.cs (2)
128Array.Resize(ref _methodsRequiringSlotUnification, Math.Max(_methodsRequiringSlotUnification.Length * 2, 2)); 169Array.Resize(ref _members, Math.Max(_members.Length * 2, 2));
src\runtime\src\coreclr\tools\Common\TypeSystem\Common\SimpleArrayOfTRuntimeInterfacesAlgorithm.cs (1)
40Array.Resize(ref _genericRuntimeInterfaces, count);
src\runtime\src\coreclr\tools\Common\TypeSystem\IL\Stubs\ILEmitter.cs (1)
79Array.Resize(ref _instructions, 2 * _instructions.Length + 10);
illink (1)
Microsoft.AspNetCore.Diagnostics.Middleware (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingFeature.cs (1)
62Array.Resize(ref _boxes, header.Position + 1);
Microsoft.AspNetCore.HttpLogging (1)
src\aspnetcore\src\Shared\Buffers\BufferSegmentStack.cs (1)
61Array.Resize(ref _array, 2 * _array.Length);
Microsoft.AspNetCore.Server.Kestrel.Core (4)
src\aspnetcore\src\Servers\Kestrel\shared\PooledStreamStack.cs (1)
98Array.Resize(ref _array, 2 * _array.Length);
src\aspnetcore\src\Shared\Buffers\BufferSegmentStack.cs (1)
61Array.Resize(ref _array, 2 * _array.Length);
src\aspnetcore\src\Shared\runtime\Http2\Hpack\Huffman.cs (2)
714Array.Resize(ref dstArray, dst.Length * 2); 781Array.Resize(ref dstArray, dst.Length * 2);
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
src\aspnetcore\src\Servers\Kestrel\shared\PooledStreamStack.cs (1)
98Array.Resize(ref _array, 2 * _array.Length);
Microsoft.Build (15)
_generated\0\RegexGenerator.g.cs (3)
7061Array.Resize(ref stack, (pos + 0) * 2); 7088Array.Resize(ref stack, (pos + 1) * 2); 7116Array.Resize(ref stack, (pos + 2) * 2);
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (1)
150Array.Resize(ref waitForExitTasks, i);
Graph\ProjectInterpretation.cs (1)
624Array.Resize(ref result, writeIndex);
Logging\TerminalLogger\TerminalLogger.cs (1)
1110Array.Resize(ref _nodes, newSize);
src\5057ed6cf5d6323b\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\msbuild\artifacts\.packages\microsoft.codeanalysis.collections\5.0.0-1.25277.114\contentFiles\cs\net9.0\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Microsoft.Build.Tasks.Core (3)
_generated\0\RegexGenerator.g.cs (3)
4221Array.Resize(ref stack, (pos + 0) * 2); 4248Array.Resize(ref stack, (pos + 1) * 2); 4276Array.Resize(ref stack, (pos + 2) * 2);
Microsoft.Build.Utilities.Core (3)
_generated\0\RegexGenerator.g.cs (3)
2679Array.Resize(ref stack, (pos + 0) * 2); 2706Array.Resize(ref stack, (pos + 1) * 2); 2734Array.Resize(ref stack, (pos + 2) * 2);
Microsoft.CodeAnalysis (26)
_generated\0\RegexGenerator.g.cs (3)
980Array.Resize(ref stack, (pos + 0) * 2); 1007Array.Resize(ref stack, (pos + 1) * 2); 1035Array.Resize(ref stack, (pos + 2) * 2);
CodeGen\TokenMap.cs (1)
76Array.Resize(ref items, Math.Max(8, count * 2));
Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
DiaSymReader\Writer\SymUnmanagedSequencePointsWriter.cs (5)
44Array.Resize(ref _offsets, newLength); 45Array.Resize(ref _startLines, newLength); 46Array.Resize(ref _startColumns, newLength); 47Array.Resize(ref _endLines, newLength); 48Array.Resize(ref _endColumns, newLength);
InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Syntax\GreenNode.cs (1)
1004Array.Resize(ref errorInfos, length + 1);
Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
148Array.Resize(ref _nodes, newSize);
Syntax\SyntaxNode.Iterators.cs (2)
148Array.Resize(ref _stack, checked(_stackPtr * 2)); 209Array.Resize(ref _stack, checked(_stackPtr * 2));
Text\LargeText.cs (1)
121Array.Resize(ref chunk, charsRead);
Text\LargeTextWriter.cs (1)
141Array.Resize(ref _buffer, _currentUsed);
Microsoft.CodeAnalysis.Analyzers (14)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length);
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Microsoft.CodeAnalysis.CodeStyle (13)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length);
Microsoft.CodeAnalysis.CSharp (3)
Parser\SyntaxParser.cs (2)
420Array.Resize(ref _blendedTokens, _blendedTokens.Length * 2); 448Array.Resize(ref _lexedTokens, _lexedTokens.Length * 2);
Symbols\Source\SourceNamespaceSymbol.cs (1)
313Array.Resize(ref memberOfArity, arity + 1);
Microsoft.CodeAnalysis.Extensions.Package (11)
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Microsoft.CodeAnalysis.Razor.Compiler (3)
Language\Legacy\LegacySyntaxNodeExtensions.ChildSyntaxListReversedEnumeratorStack.cs (1)
48Array.Resize(ref _stack, _stack.Length * 2);
Language\Syntax\InternalSyntax\SyntaxListBuilder.cs (1)
151Array.Resize(ref _nodes, newSize);
Language\Syntax\SyntaxNode.Iterators.cs (1)
159Array.Resize(ref _stack, checked(_stackPtr * 2));
Microsoft.CodeAnalysis.ResxSourceGenerator (13)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
Microsoft.CodeAnalysis.Scripting (1)
ScriptExecutionState.cs (1)
161Array.Resize(ref _submissionStates, Math.Max(SubmissionStateCount, _submissionStates.Length * 2));
Microsoft.CodeAnalysis.Workspaces (12)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length);
Microsoft.DiaSymReader (5)
Writer\SymUnmanagedSequencePointsWriter.cs (5)
42Array.Resize(ref _offsets, newLength); 43Array.Resize(ref _startLines, newLength); 44Array.Resize(ref _startColumns, newLength); 45Array.Resize(ref _endLines, newLength); 46Array.Resize(ref _endColumns, newLength);
Microsoft.DotNet.Build.Tasks.Workloads (1)
Utils.cs (1)
158Array.Resize(ref hash, 16);
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
Microsoft.Extensions.Http.Diagnostics (2)
src\Shared\BufferWriterPool\BufferWriter.cs (2)
76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
Microsoft.Extensions.Logging (1)
LoggerFactory.cs (1)
188Array.Resize(ref loggerInformation, loggerInformation.Length + 1);
Microsoft.Extensions.Telemetry (1)
Logging\ExtendedLoggerFactory.cs (1)
182Array.Resize(ref loggerInformation, loggerInformation.Length + 1);
Microsoft.Extensions.Telemetry.Abstractions (3)
Logging\LoggerMessageState.cs (3)
50Array.Resize(ref _tags, need); 69Array.Resize(ref _classifiedTags, need); 70Array.Resize(ref _redactedTags, need);
Microsoft.Maui (2)
Layouts\Flex.cs (1)
863 Array.Resize(ref layout.lines, (layout.lines?.Length ?? 0) + 1);
Layouts\GridLayoutManager.cs (1)
136 Array.Resize(ref _childrenToLayOut, currentChild);
Microsoft.ML.AutoML (2)
ColumnInference\TextFileSample.cs (2)
152Array.Resize(ref chunk, chunkSize); 166Array.Resize(ref buf, readCount);
Microsoft.ML.Core (11)
Utilities\ArrayUtils.cs (1)
96Array.Resize(ref array, newSize);
Utilities\BigArray.cs (8)
252Array.Resize(ref _entries, newBlockCount); 253Array.Resize(ref _entries[newBlockCount - 1], newLastBlockLength); 267Array.Resize(ref _entries[0], Math.Min(BlockSize, Math.Max(2 * curLastBlockSize, newLastBlockLength))); 272Array.Resize(ref _entries[newBlockCount - 1], BlockSize); 280Array.Resize(ref _entries, newBlockCount); 281Array.Resize(ref _entries[curBlockCount - 1], BlockSize); 306Array.Resize(ref _entries[maMax], miLim); 307Array.Resize(ref _entries, maMax + 1);
Utilities\NormStr.cs (2)
227Array.Resize(ref _rgmeta, size); 228Array.Resize(ref _rgns, size);
Microsoft.ML.Data (27)
Data\BufferBuilder.cs (5)
181Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 183Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 209Array.Resize(ref _values, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 211Array.Resize(ref _indices, Math.Max(Math.Min(_length, checked(_count * 2)), 8)); 323Array.Resize(ref _values, _length);
DataLoadSave\Text\TextLoaderCursor.cs (1)
812Array.Resize(ref infos, index);
DataLoadSave\Text\TextLoaderParser.cs (5)
370Array.Resize(ref _values, 2 * _count); 372Array.Resize(ref _indices, 2 * _count); 388Array.Resize(ref _values, _size); 643Array.Resize(ref Spans, size); 644Array.Resize(ref Indices, size);
DataLoadSave\Text\TextSaver.cs (3)
662Array.Resize(ref _rgch, checked(_rgch.Length * 2)); 664Array.Resize(ref _mpslotdst, checked(_mpslotdst.Length * 2)); 666Array.Resize(ref _mpslotichLim, checked(_mpslotichLim.Length * 2));
DataView\CacheDataView.cs (4)
1413Array.Resize(ref _indexBoundaries, _rowCount + 1); 1414Array.Resize(ref _valueBoundaries, _rowCount + 1); 1415Array.Resize(ref _lengths, _rowCount); 1456Array.Resize(ref _values, _rowCount);
Transforms\SlotsDroppingTransformer.cs (2)
412Array.Resize(ref slotsMin[i], iDst); 413Array.Resize(ref slotsMax[i], iDst);
Utils\SequencePool.cs (7)
77Array.Resize(ref _start, 11); 79Array.Resize(ref _bytes, 40); 241Array.Resize(ref _start, size); 251Array.Resize(ref _hash, size); 252Array.Resize(ref _next, size); 262Array.Resize(ref _bytes, size); 356Array.Resize(ref sequence, lim - min);
Microsoft.ML.DataView (1)
src\Microsoft.ML.Core\Utilities\ArrayUtils.cs (1)
96Array.Resize(ref array, newSize);
Microsoft.ML.Ensemble (3)
OutputCombiners\BaseStacking.cs (2)
206Array.Resize(ref labels, count); 207Array.Resize(ref features, count);
Selector\SubModelSelector\BaseDiverseSelector.cs (1)
58Array.Resize(ref preds, count);
Microsoft.ML.FastTree (1)
Utils\CompressUtils.cs (1)
56Array.Resize(ref block.Buffer, (block.Offset + block.Length + loadSize) * 2);
Microsoft.ML.Parquet (1)
ParquetLoader.cs (1)
730Array.Resize(ref arr, 16);
Microsoft.ML.Samples (1)
Dynamic\TensorFlow\TextClassification.cs (1)
95Array.Resize(ref features, MaxSentenceLength);
Microsoft.ML.Samples.GPU (1)
docs\samples\Microsoft.ML.Samples\Dynamic\TensorFlow\TextClassification.cs (1)
95Array.Resize(ref features, MaxSentenceLength);
Microsoft.ML.StandardTrainers (2)
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (2)
199Array.Resize(ref labelHistogram, labelCount); 200Array.Resize(ref featureHistogram, labelCount);
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1282Array.Resize(ref processedData.Features, 600);
Microsoft.ML.TimeSeries (41)
AdaptiveSingularSpectrumSequenceModeler.cs (2)
1196Array.Resize(ref dataArray, count); 1244Array.Resize(ref dataArray, count);
Deseasonality.cs (3)
27Array.Resize(ref _circularComponent, period); 69Array.Resize(ref _circularComponent, period); 70Array.Resize(ref _subSeries, period);
SrCnnEntireAnomalyDetector.cs (26)
493Array.Resize<double[]>(ref results, values.Length); 502Array.Resize(ref _seriesToDetect, values.Length); 555Array.Resize(ref _fftRe, length); 556Array.Resize(ref _fftIm, length); 558Array.Resize(ref _zeroArray, length); 562Array.Resize(ref _magList, length); 563Array.Resize(ref _magLogList, length); 579Array.Resize(ref _spectralList, length); 586Array.Resize(ref _transRe, length); 587Array.Resize(ref _transIm, length); 602Array.Resize(ref _ifftRe, length); 603Array.Resize(ref _ifftIm, length); 607Array.Resize(ref _ifftMagList, length); 656Array.Resize(ref _backAddArray, data.Length + _backAddWindowSize); 683Array.Resize(ref _cumSumList, length); 684Array.Resize(ref _cumSumShift, length); 899Array.Resize(ref _deAnomalyData, data.Length); 956Array.Resize(ref _fftRe, length); 957Array.Resize(ref _fftIm, length); 958Array.Resize(ref _zeroArray, length); 970Array.Resize(ref _ifftRe, length); 971Array.Resize(ref _ifftIm, length); 1004Array.Resize(ref _units, _trends.Length); 1026Array.Resize(ref _val, tLen); 1028Array.Resize(ref _trends, tLen); 1030Array.Resize(ref _curWindow, wLen);
STL\InnerStl.cs (10)
126Array.Resize(ref _seasonalComponent, length); 127Array.Resize(ref _trendComponent, length); 128Array.Resize(ref _residual, length); 130Array.Resize(ref _s, length); 131Array.Resize(ref _t, length); 132Array.Resize(ref _detrendedY, length); 133Array.Resize(ref _c, length + np * 2); 134Array.Resize(ref _deseasonSeries, length); 136Array.Resize(ref _cycleSubSeries, np); 137Array.Resize(ref _smoothedSubseries, np);
Microsoft.ML.Tokenizers (2)
RegexGenerator.g.cs (1)
2356Array.Resize(ref stack, (pos + 0) * 2);
Utils\Vec.cs (1)
56Array.Resize(ref _buffer, _buffer.Length << 1);
Microsoft.ML.Transforms (5)
Expression\LambdaBinder.cs (1)
1450Array.Resize(ref args, head + 1);
Expression\TokenCursor.cs (1)
125Array.Resize(ref _buffer, 2 * _buffer.Length);
GroupTransform.cs (1)
489Array.Resize(ref _buffer, size);
MutualInformationFeatureSelection.cs (2)
690Array.Resize(ref _contingencyTable[i], numFeatures); 691Array.Resize(ref _featureSums, numFeatures);
Microsoft.NET.HostModel (3)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
Microsoft.Private.Windows.Core (1)
System\Collections\Generic\ArrayBuilder.cs (1)
61Array.Resize(ref _items, newCapacity);
Microsoft.TestPlatform.CrossPlatEngine (1)
Client\MTP\MtpServerConnection.cs (1)
379Array.Resize(ref buffer, offset);
Microsoft.VisualBasic.Core (2)
Microsoft\VisualBasic\CompilerServices\IDOBinder.vb (2)
981Array.Resize(packedIndexes, packedIndexes.Length + 1) 1054Array.Resize(packedIndexes, packedIndexes.Length + 1)
Microsoft.Win32.Registry (7)
Microsoft\Win32\RegistryKey.cs (7)
789Array.Resize(ref names, names.Length * 2); 806Array.Resize(ref names, cpt); 888Array.Resize(ref names, names.Length * 2); 904Array.Resize(ref names, names.Length * 2); 940Array.Resize(ref names, cpt); 1149Array.Resize(ref strings, count == 0 ? 4 : count * 2); 1156Array.Resize(ref strings, count);
Mono.Cecil (1)
Mono\Empty.cs (1)
46 Array.Resize (ref self, length);
RepoTasks (1)
Uuid.cs (1)
50Array.Resize(ref hash, 16);
Roslyn.Diagnostics.Analyzers (14)
src\roslyn\src\Compilers\Core\Portable\Collections\BitVector.cs (1)
100if (requiredWords > _bits.Length) Array.Resize(ref _bits, requiredWords);
src\roslyn\src\Compilers\Core\Portable\InternalUtilities\StreamExtensions.cs (1)
69Array.Resize(ref buffer, actualLength);
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (2)
1072Array.Resize(ref array, arraySize); 1092Array.Resize(ref array, i);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedDictionary`2.cs (3)
680Array.Resize(ref segments, newSegmentCount); 685Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 689Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedHashSet`1.cs (3)
934Array.Resize(ref segments, newSegmentCount); 939Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<Entry>()); 943Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Dependencies\Collections\Segmented\SegmentedList`1.cs (3)
166Array.Resize(ref segments, newSegmentCount); 171Array.Resize(ref segments[i], SegmentedArrayHelper.GetSegmentSize<T>()); 175Array.Resize(ref segments[newSegmentCount - 1], lastSegmentSize);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\SyntaxAnnotationExtensions.cs (1)
31Array.Resize(ref finalAnnotations, originalAnnotations.Length + newAnnotations.Length);
Shared (2)
BufferWriterPool\BufferWriter.cs (2)
76Array.Resize(ref _buffer, value); 185Array.Resize(ref _buffer, targetCapacity);
System.Collections (6)
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (1)
79Array.Resize(ref arr, newLength);
System\Collections\Generic\PriorityQueue.cs (2)
616Array.Resize(ref _nodes, _size); 644Array.Resize(ref _nodes, newcapacity);
System\Collections\Generic\Stack.cs (3)
170Array.Resize(ref _array, _size); 187Array.Resize(ref _array, capacity); 327Array.Resize(ref _array, newcapacity);
System.Collections.Immutable (1)
System\Collections\Immutable\ImmutableArray_1.Builder.cs (1)
744Array.Resize(ref _elements, newCapacity);
System.Console (1)
System\IO\StdInReader.cs (1)
79Array.Resize(ref _unprocessedBufferToBeRead, _unprocessedBufferToBeRead.Length * 2);
System.Data.Common (35)
_generated\0\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
System\Data\Common\BigIntegerStorage.cs (1)
144Array.Resize(ref _values, capacity);
System\Data\Common\BooleanStorage.cs (1)
164Array.Resize(ref _values, capacity);
System\Data\Common\ByteStorage.cs (1)
236Array.Resize(ref _values, capacity);
System\Data\Common\CharStorage.cs (1)
168Array.Resize(ref _values, capacity);
System\Data\Common\DateTimeOffsetStorage.cs (1)
171Array.Resize(ref _values, capacity);
System\Data\Common\DateTimeStorage.cs (1)
210Array.Resize(ref _values, capacity);
System\Data\Common\DecimalStorage.cs (1)
232Array.Resize(ref _values, capacity);
System\Data\Common\DoubleStorage.cs (1)
236Array.Resize(ref _values, capacity);
System\Data\Common\Int16Storage.cs (1)
250Array.Resize(ref _values, capacity);
System\Data\Common\Int32Storage.cs (1)
249Array.Resize(ref _values, capacity);
System\Data\Common\Int64Storage.cs (1)
241Array.Resize(ref _values, capacity);
System\Data\Common\SByteStorage.cs (1)
238Array.Resize(ref _values, capacity);
System\Data\Common\SingleStorage.cs (1)
237Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLBinaryStorage.cs (1)
94Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQlBooleanStorage.cs (1)
128Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLBytesStorage.cs (1)
92Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLByteStorage.cs (1)
204Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLCharsStorage.cs (1)
94Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDateTimeStorage.cs (1)
130Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDecimalStorage.cs (1)
202Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLDoubleStorage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLGuidStorage.cs (1)
95Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt16Storage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt32Storage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLInt64Storage.cs (1)
204Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLMoneyStorage.cs (1)
203Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLSingleStorage.cs (1)
201Array.Resize(ref _values, capacity);
System\Data\Common\SQLTypes\SQLStringStorage.cs (1)
156Array.Resize(ref _values, capacity);
System\Data\Common\SqlUDTStorage.cs (1)
140Array.Resize(ref _values, capacity);
System\Data\Common\TimeSpanStorage.cs (1)
256Array.Resize(ref _values, capacity);
System\Data\Common\UInt16Storage.cs (1)
249Array.Resize(ref _values, capacity);
System\Data\Common\UInt32Storage.cs (1)
248Array.Resize(ref _values, capacity);
System\Data\Common\UInt64Storage.cs (1)
239Array.Resize(ref _values, capacity);
System.Data.Odbc (3)
_generated\1\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
src\runtime\src\libraries\Common\src\System\Data\ProviderBase\DbReferenceCollection.cs (1)
131Array.Resize<CollectionEntry>(ref _items, _items.Length * 2);
System.Data.OleDb (3)
_generated\4\RegexGenerator.g.cs (2)
607Array.Resize(ref stack, (pos + 0) * 2); 634Array.Resize(ref stack, (pos + 1) * 2);
System\Data\ProviderBase\DbReferenceCollection.cs (1)
127Array.Resize<CollectionEntry>(ref _items, _items.Length * 2);
System.Diagnostics.DiagnosticSource (2)
System\Diagnostics\Metrics\TagList.netcore.cs (2)
128Array.Resize(ref _overflowTags, _tagsCount + OverflowAdditionalCapacity); 196Array.Resize(ref _overflowTags, _tagsCount + OverflowAdditionalCapacity);
System.Diagnostics.EventLog (1)
System\Diagnostics\Reader\EventLogRecord.cs (1)
286Array.Resize(ref theValues, i + 1);
System.Drawing.Common (1)
System\Drawing\Internal\SystemColorTracker.cs (1)
120Array.Resize(ref s_list, s_list.Length * EXPAND_FACTOR);
System.Formats.Asn1 (1)
System\Formats\Asn1\AsnWriter.cs (1)
421Array.Resize(ref _buffer, BlockSize * blocks);
System.IO.FileSystem.Watcher (1)
System\IO\FileSystemWatcher.Linux.cs (1)
755Array.Resize(ref buffer, lengthNeeded);
System.IO.Pipelines (1)
System\IO\Pipelines\BufferSegmentStack.cs (1)
63Array.Resize(ref _array, 2 * _array.Length);
System.Linq (4)
System\Linq\Chunk.cs (2)
100Array.Resize(ref array, arraySize); 120Array.Resize(ref array, i);
System\Linq\Grouping.cs (2)
374Array.Resize(ref _elements, checked(_count * 2)); 385Array.Resize(ref _elements, _count);
System.Linq.AsyncEnumerable (4)
System\Linq\Chunk.cs (2)
68Array.Resize(ref array, arraySize); 88Array.Resize(ref array, i);
System\Linq\GroupBy.cs (2)
409Array.Resize(ref _elements, checked(_count * 2)); 420Array.Resize(ref _elements, _count);
System.Memory (1)
src\runtime\src\libraries\Common\src\System\Buffers\ArrayBufferWriter.cs (1)
237Array.Resize(ref _buffer, newSize);
System.Net.Http (5)
src\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\Http2\Hpack\Huffman.cs (2)
714Array.Resize(ref dstArray, dst.Length * 2); 781Array.Resize(ref dstArray, dst.Length * 2);
System\Net\Http\Headers\HttpHeaders.cs (1)
1562Array.Resize(ref entries, entries.Length << 1);
System\Net\Http\HttpContent.cs (1)
1043Array.Resize(ref _pooledBuffers, bufferCount + 4);
System\Net\Http\SocketsHttpHandler\MultiProxy.cs (1)
63Array.Resize(ref uris, idx + 1);
System.Net.NetworkInformation (2)
System\Net\NetworkInformation\StringParsingHelpers.Connections.cs (2)
99Array.Resize(ref connections, connections.Length - skip); 179Array.Resize(ref endPoints, endPoints.Length - skip);
System.Net.Sockets (1)
System\Net\Sockets\SocketAsyncEngine.Unix.cs (1)
130Array.Resize(ref s_registeredContexts, newLength);
System.Private.CoreLib (21)
Internal\Runtime\ThreadStatics.cs (2)
92Array.Resize(ref threadStorage, moduleIndex + 1); 106Array.Resize(ref moduleStorage, newSize);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (1)
79Array.Resize(ref arr, newLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Collections\BitArray.cs (2)
642Array.Resize(ref _array, newByteLength); 657Array.Resize(ref _array, newByteLength);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Diagnostics\Tracing\TraceLogging\DataCollector.cs (1)
307Array.Resize(ref this.buffer, newSize);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\JapaneseLunisolarCalendar.cs (1)
198Array.Resize(ref newEras, newIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Net\WebUtility.cs (1)
546Array.Resize(ref decodedBytes, decodedBytesCount);
src\runtime\src\libraries\System.Private.CoreLib\src\System\String.Manipulation.cs (1)
2050Array.Resize(ref splitStrings, arrIndex);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Threading\ExecutionContext.cs (1)
540Array.Resize(ref newChangeNotifications, newNotificationIndex + 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\TimeZoneInfo.Cache.cs (1)
1349Array.Resize(ref _yearsTransitions, Math.Max(_yearsTransitions.Length * 2, count + _yearsTransitionsCount));
System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs (4)
156Array.Resize(ref _members, _totalCount); 157Array.Resize(ref _allFlagsThatMustMatch, _totalCount); 171Array.Resize(ref _members, count + Grow); 172Array.Resize(ref _allFlagsThatMustMatch, count + Grow);
System\Reflection\Runtime\General\ListBuilder.cs (2)
45Array.Resize(ref _items, _count); 80Array.Resize(ref _items, newCapacity);
System\Runtime\CompilerServices\ClassConstructorRunner.cs (1)
329Array.Resize(ref s_cctorArrays, (s_cctorArrays.Length * 2) + 1);
System.Private.DataContractSerialization (6)
System\Runtime\Serialization\ContextAware.cs (1)
46Array.Resize<(DataContract?, WeakReference<DataContract>?)>(ref _contracts, newSize);
System\Runtime\Serialization\Json\JsonDataContract.cs (1)
207Array.Resize<JsonDataContract>(ref s_dataContractCache, newSize);
System\Runtime\Serialization\ObjectReferenceStack.cs (2)
31Array.Resize<object>(ref _objectArray, _objectArray.Length * 2); 65Array.Resize<bool>(ref _isReferenceArray, _objectArray.Length);
System\Runtime\Serialization\ScopedKnownTypes.cs (1)
24Array.Resize<DataContractDictionary>(ref dataContractDictionaries, dataContractDictionaries.Length * 2);
System\Xml\XmlDictionary.cs (1)
52Array.Resize(ref _strings, newSize);
System.Private.Reflection.Execution (3)
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
System.Private.TypeLoader (4)
src\runtime\src\coreclr\tools\Common\Internal\NativeFormat\NativeFormatWriter.Primitives.cs (1)
28Array.Resize(ref _buffer, 2 * _buffer.Length);
src\runtime\src\coreclr\tools\Common\System\Collections\Generic\ArrayBuilder.cs (3)
28Array.Resize(ref _items, _count); 44Array.Resize(ref _items, 2 * _count + 1); 109Array.Resize(ref _items, newCount);
System.Private.Windows.Core (1)
System\Collections\Generic\ArrayBuilder.cs (1)
61Array.Resize(ref _items, newCapacity);
System.Private.Xml (3)
_generated\0\RegexGenerator.g.cs (2)
2571Array.Resize(ref stack, (pos + 0) * 2); 2598Array.Resize(ref stack, (pos + 1) * 2);
System\Xml\BinHexDecoder.cs (1)
126Array.Resize(ref bytes, bytesDecoded);
System.Private.Xml.Linq (2)
src\runtime\src\libraries\Common\src\System\Collections\Generic\EnumerableHelpers.cs (1)
79Array.Resize(ref arr, newLength);
System\Xml\Linq\XObject.cs (1)
101Array.Resize(ref a, i * 2);
System.Reflection.MetadataLoadContext (6)
System\Reflection\Runtime\BindingFlagSupport\QueriedMemberList.cs (4)
167Array.Resize(ref _members, _totalCount); 168Array.Resize(ref _allFlagsThatMustMatch, _totalCount); 182Array.Resize(ref _members, count + Grow); 183Array.Resize(ref _allFlagsThatMustMatch, count + Grow);
System\Reflection\Runtime\General\ListBuilder.cs (2)
45Array.Resize(ref _items, _count); 94Array.Resize(ref _items, newCapacity);
System.Runtime.Serialization.Formatters (1)
System\Runtime\Serialization\FormatterServices.cs (1)
157Array.Resize(ref parentTypes, Math.Max(parentTypeCount * 2, 12));
System.Security.Cryptography (12)
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.NCryptDeriveKeyMaterial.cs (1)
178Array.Resize(ref keyMaterial, Math.Min(keySize, keyMaterial.Length));
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (1)
107Array.Resize(ref propertyValue, numBytesNeeded);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.SignVerify.cs (1)
43Array.Resize(ref signature, numBytesNeeded);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (1)
1523Array.Resize(ref publicKey, bytesWritten);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\X509Certificates\X509CertificateLoader.Pkcs12.cs (2)
426Array.Resize(ref bag.BagAttributes, oldCount + 1); 493Array.Resize(ref bag.BagAttributes, attrLen);
System\Security\Cryptography\CngKey.Export.cs (1)
32Array.Resize(ref buffer, numBytesNeeded);
System\Security\Cryptography\OidCollection.cs (1)
30Array.Resize(ref _oids, count == 0 ? 4 : count * 2);
System\Security\Cryptography\RSA.cs (1)
1391Array.Resize(ref result, written);
System\Security\Cryptography\SymmetricAlgorithm.cs (2)
535Array.Resize(ref decryptBuffer, written); 1136Array.Resize(ref decryptBuffer, written);
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
365Array.Resize(ref propertyValue, numBytesNeeded);
System.Security.Cryptography.Pkcs (8)
Internal\Cryptography\PkcsHelpers.cs (1)
79Array.Resize(ref a, size);
System\Security\Cryptography\Pkcs\SignedCms.cs (4)
361Array.Resize(ref _signedData.SignerInfos, newIdx + 1); 504Array.Resize(ref _signedData.DigestAlgorithms, curLength + 1); 576Array.Resize(ref _signedData.CertificateSet, existingLength + newCerts.Count); 681Array.Resize(ref _signedData.CertificateSet, existingLength + 1);
System\Security\Cryptography\Pkcs\SignerInfo.cs (3)
209Array.Resize(ref mySigner.UnsignedAttributes, newAttributeIdx + 1); 219Array.Resize(ref modifiedAttr.AttrValues, newIndex + 1); 337Array.Resize(ref mySigner.UnsignedAttributes, newExtensionIdx + 1);
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (1)
170Array.Resize(ref bytes, bytes.Length + 1);
System.Security.Principal.Windows (1)
System\Security\Principal\WindowsIdentity.cs (1)
159Array.Resize(ref upnBytes, upnBytes.Length & ushort.MaxValue);
System.ServiceModel.Primitives (1)
Internals\System\Xml\XmlMtomReader.cs (1)
1413Array.Resize(ref _valueBuffer, byteCount);
System.Text.Json (4)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
147Array.Resize(ref adjacencyRow, index + 1);
System\Text\Json\BitStack.cs (1)
171Array.Resize(ref _array, nextDouble);
System\Text\Json\Serialization\ReadStack.cs (1)
98Array.Resize(ref _stack, 2 * _stack.Length);
System\Text\Json\Serialization\WriteStack.cs (1)
134Array.Resize(ref _stack, 2 * _stack.Length);
System.Text.Json.SourceGeneration (1)
src\runtime\src\libraries\System.Text.Json\Common\JsonHelpers.cs (1)
147Array.Resize(ref adjacencyRow, index + 1);
System.Text.RegularExpressions (2)
System\Text\RegularExpressions\Symbolic\SparseIntMap.cs (1)
80Array.Resize(ref _sparse, newLength);
System\Text\RegularExpressions\Symbolic\SymbolicRegexMatcher.Automata.cs (1)
100/// Implements a version of <see cref="Array.Resize"/> that is guaranteed to not publish an array before values
System.Windows.Forms.Design (2)
System\ComponentModel\Design\ComponentDesigner.cs (1)
211Array.Resize(ref designers, idx);
System\Windows\Forms\Design\StringCollectionEditor.StringCollectionForm.cs (1)
174Array.Resize(ref newLines, newLines.Length - 1);