1060 references to List
ComSvcConfig (2)
ComAdminWrapper.cs (1)
601static List<Version> CLRVersions = new List<Version>(2) { new Version("2.0"), new Version("4.0") };
Options.cs (1)
405this.components = new List<ComponentDefinition<string>>(comps.Count);
mscorlib (32)
parent\parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
51m_NotGen2 = new List<object>(DefaultNumberOfBuffers);
system\cfgparser.cs (2)
500List<ConfigNode> m_children = new List<ConfigNode>(5); 501List<DictionaryEntry> m_attributes = new List<DictionaryEntry>(5);
system\Collections\Concurrent\ConcurrentDictionary.cs (2)
2041List<TKey> keys = new List<TKey>(count); 2074List<TValue> values = new List<TValue>(count);
system\collections\generic\list.cs (2)
349List<TOutput> list = new List<TOutput>(_size); 597List<T> list = new List<T>(count);
system\diagnostics\eventing\eventprovider.cs (3)
439sessionList = new List<SessionInfo>(8); 931List<int> refObjPosition = new List<int>(s_etwAPIMaxRefObjCount); 932List<object> dataRefObj = new List<object>(s_etwAPIMaxRefObjCount);
system\diagnostics\eventing\eventsource.cs (4)
2885m_legacySessions = new List<EtwSession>(8); 4410s_EventSources = new List<WeakReference>(2); 4580Interlocked.CompareExchange(ref s_EventSources, new List<WeakReference>(2), null); 6216byteArrArgIndices = new List<int>(4);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventSource.cs (1)
739List<byte> traitMetaData = new List<byte>(100);
System\Diagnostics\Eventing\TraceLogging\TraceLoggingEventTypes.cs (2)
216var recursionCheck = new List<Type>(paramInfos.Length); 235var recursionCheck = new List<Type>(types.Length);
system\globalization\datetimeformat.cs (1)
1124List<String> results = new List<String>(DEFAULT_ALL_DATETIMES_SIZE);
system\globalization\datetimeformatinfo.cs (1)
1684List<String> results = new List<String>(DEFAULT_ALL_DATETIMES_SIZE);
system\reflection\Associates.cs (1)
204otherList = new List<MethodInfo>(cAssociates);
system\rttype.cs (4)
1465cache = new List<RuntimePropertyInfo>(1); 4855results = new List<MethodInfo>(semiFinalists.Length); 4909results = new List<MethodInfo>(semiFinalists.Length); 5220List<MethodBase> matches = new List<MethodBase>(candidates.Length);
system\runtime\serialization\formatters\binary\binaryobjectinfo.cs (1)
614memberTypesList = new List<Type>(20);
system\security\policy\evidence.cs (1)
1709List<Type> expensiveList = new List<Type>(ExpensiveEvidence.Count);
system\security\principal\ircollection.cs (1)
45_Identities = new List<IdentityReference>( capacity );
system\threading\Tasks\Task.cs (2)
5171if (list == null) list = new List<T>(initSize); 5300exceptions = new List<Exception>(ex.InnerExceptions.Count);
system\threading\Tasks\TaskExceptionHolder.cs (1)
247if (exceptions == null) m_faultExceptions = exceptions = new List<ExceptionDispatchInfo>(1);
system\timezoneinfo.cs (2)
2375List<AdjustmentRule> rulesList = new List<AdjustmentRule>(1); 3931List<AdjustmentRule> rules = new List<AdjustmentRule>(1);
PresentationBuildTasks (9)
BuildTasks\Microsoft\Build\Tasks\Windows\UidManager.cs (2)
668_uids = new List<Uid>(32); 669_namespacePrefixes = new List<string>(2);
Core\CSharp\MS\internal\Media\XamlSerializationHelper.cs (2)
393List<ThreeDoublesMarkup> resource = new List<ThreeDoublesMarkup>( source.Length/ 8 ) ; // SWAG the length of the collection. 419List<Point> resource = new List<Point>(source.Length/ 8 ); // SWAG the length of the collection.
Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
96List<PropertyComment> tokens = new List<PropertyComment>(8);
Framework\System\Windows\Markup\BamlRecordWriter.cs (3)
312_staticResourceRecordList = new List<ValueDeferRecord>(5); 1175_staticResourceRecordList = new List<ValueDeferRecord>(1); 1804_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3479namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
PresentationCore (196)
Core\CSharp\MS\Internal\FontCache\FontResourceCache.cs (2)
142folderResourceMap[folderName] = new List<string>(1); 146folderResourceMap[resourceFullName] = new List<string>(1);
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (4)
104_fontSources = new List<Text.TextInterface.IFontSource>(1); 251fontSources = new List<Text.TextInterface.IFontSource>(files.Count); 274fontSources = new List<Text.TextInterface.IFontSource>(0); 280fontSources = new List<Text.TextInterface.IFontSource>(resourceEntries.Count);
Core\CSharp\MS\Internal\IListConverters.cs (4)
111List<double> list = new List<double>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 154List<ushort> list = new List<ushort>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 195List<bool> list = new List<bool>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1)); 237List<Point> list = new List<Point>(Math.Min(256, value.Length / EstimatedCharCountPerItem + 1));
Core\CSharp\MS\Internal\Ink\ErasingStroke.cs (1)
64_erasingStrokeNodes = new List<StrokeNode>(points.Length);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\AlgoModule.cs (1)
271List<byte> compressedData = new List<byte>(input.Length + 1); //reasonable default based on profiling.
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\GorillaCodec.cs (1)
676List<byte> output = new List<byte>((bitsToWrite / 8) * unitsToDecode);
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (2)
110List<char> charData = new List<char>((int)inkData.Length); 1731_strokeDescriptorTable = new List<StrokeDescriptor>(_coreStrokes.Count);
Core\CSharp\MS\Internal\Ink\StrokeIntersection.cs (2)
195List<StrokeFIndices> inFIndices = new List<StrokeFIndices>(intersections.Length); 227List<StrokeFIndices> hitFIndices = new List<StrokeFIndices>(intersections.Length);
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (2)
58List<Point> connectingQuadPoints = new List<Point>(iterator.Count * 4); 271List<Point> polyLinePoints = new List<Point>(4);
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (1)
551points = new List<Point>(count);
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (1)
48private IList<ScaledShapeTypeface> _cachedScaledTypefaces = new List<ScaledShapeTypeface>(InitialScaledGlyphableTypefaceCount);
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (2)
2031IList<TextRunBounds> boundsList = new List<TextRunBounds>(2); 2112IList<TextSpan<TextRun>> lsrunList = new List<TextSpan<TextRun>>(2);
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (4)
3305glyphAdvances = new List<double>(glyphCount); 3311glyphOffsets = new List<Point>(glyphCount); 3447charWidths = new List<double>(cchText); 3798_indexedGlyphRuns = new List<IndexedGlyphRun>(8);
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
671List<DWriteFontFeature> fontFeatures = new List<DWriteFontFeature>((int)CustomOpenTypeFeatures.Count);
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (4)
852boundsList = new List<TextRunBounds>(2); 928List<IndexedGlyphRun> indexedGlyphRuns = new List<IndexedGlyphRun>(_runs.Length); 951displayGlyphAdvances = new List<double>(run.NominalAdvances.Length); 1799displayGlyphAdvances = new List<double>(NominalAdvances.Length);
Core\CSharp\MS\Internal\TextFormatting\TextRunCacheImp.cs (1)
334IList<TextSpan<TextRun>> textRunList = new List<TextSpan<TextRun>>(_textRunVector.Count);
Core\CSharp\System\Windows\FreezableCollection.cs (3)
81_collection = new List<T>(capacity); 101_collection = new List<T>(count); 845_collection = new List<T>(count);
Core\CSharp\System\Windows\Ink\IncrementalHitTester.cs (2)
139_strokeInfos = new List<StrokeInfo>(strokes.Count); 244List<StrokeInfo> newStrokeInfos = new List<StrokeInfo>(_strokes.Count);
Core\CSharp\System\Windows\Input\AccessKeyManager.cs (2)
451List<IInputElement> finalTargets = new List<IInputElement>(1); 688List<IInputElement> copy = new List<IInputElement>(elements.Count);
Core\CSharp\System\Windows\Input\Command\CommandBindingCollection.cs (3)
186_innerCBList = new System.Collections.Generic.List<CommandBinding>(1); 211_innerCBList = new System.Collections.Generic.List<CommandBinding>(collection.Count); 377System.Collections.Generic.List<CommandBinding> list = new System.Collections.Generic.List<CommandBinding>(0);
Core\CSharp\System\Windows\Input\Command\InputBindingCollection.cs (3)
227_innerBindingList = new System.Collections.Generic.List<InputBinding>(1); 279_innerBindingList = new System.Collections.Generic.List<InputBinding>(collection.Count); 410System.Collections.Generic.List<InputBinding> list = new System.Collections.Generic.List<InputBinding>(0);
Core\CSharp\System\Windows\Input\Command\InputGestureCollection.cs (3)
175List<InputGesture> list = new List<InputGesture>(0); 301_innerGestureList = new System.Collections.Generic.List<InputGesture>(collection.Count); 433_innerGestureList = new List<InputGesture>(1);
Core\CSharp\System\Windows\Input\ManipulationDevice.cs (2)
181_manipulators = new List<IManipulator>(2); 262return new ReadOnlyCollection<IManipulator>(new List<IManipulator>(2));
Core\CSharp\System\Windows\Input\ManipulationStartingEventArgs.cs (1)
140_parameters = new List<ManipulationParameters2D>(1);
Core\CSharp\System\Windows\Input\TouchDevice.cs (2)
483others = new List<DependencyObject>(count); 1226_activeDevices = new List<TouchDevice>(2);
Core\CSharp\System\Windows\Media\Animation\AnimationLayer.cs (1)
200animationClockList = new List<AnimationClock>(oldClocksCount + newClocksCount);
Core\CSharp\System\Windows\Media\Animation\Generated\BooleanKeyFrameCollection.cs (6)
47_keyFrames = new List< BooleanKeyFrame>(2); 65emptyCollection._keyFrames = new List< BooleanKeyFrame>(0); 107_keyFrames = new List< BooleanKeyFrame>(count); 128_keyFrames = new List< BooleanKeyFrame>(count); 149_keyFrames = new List< BooleanKeyFrame>(count); 170_keyFrames = new List< BooleanKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\ByteKeyFrameCollection.cs (6)
47_keyFrames = new List< ByteKeyFrame>(2); 65emptyCollection._keyFrames = new List< ByteKeyFrame>(0); 107_keyFrames = new List< ByteKeyFrame>(count); 128_keyFrames = new List< ByteKeyFrame>(count); 149_keyFrames = new List< ByteKeyFrame>(count); 170_keyFrames = new List< ByteKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\CharKeyFrameCollection.cs (6)
47_keyFrames = new List< CharKeyFrame>(2); 65emptyCollection._keyFrames = new List< CharKeyFrame>(0); 107_keyFrames = new List< CharKeyFrame>(count); 128_keyFrames = new List< CharKeyFrame>(count); 149_keyFrames = new List< CharKeyFrame>(count); 170_keyFrames = new List< CharKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\ColorKeyFrameCollection.cs (6)
47_keyFrames = new List< ColorKeyFrame>(2); 65emptyCollection._keyFrames = new List< ColorKeyFrame>(0); 107_keyFrames = new List< ColorKeyFrame>(count); 128_keyFrames = new List< ColorKeyFrame>(count); 149_keyFrames = new List< ColorKeyFrame>(count); 170_keyFrames = new List< ColorKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\DecimalKeyFrameCollection.cs (6)
47_keyFrames = new List< DecimalKeyFrame>(2); 65emptyCollection._keyFrames = new List< DecimalKeyFrame>(0); 107_keyFrames = new List< DecimalKeyFrame>(count); 128_keyFrames = new List< DecimalKeyFrame>(count); 149_keyFrames = new List< DecimalKeyFrame>(count); 170_keyFrames = new List< DecimalKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\DoubleKeyFrameCollection.cs (6)
47_keyFrames = new List< DoubleKeyFrame>(2); 65emptyCollection._keyFrames = new List< DoubleKeyFrame>(0); 107_keyFrames = new List< DoubleKeyFrame>(count); 128_keyFrames = new List< DoubleKeyFrame>(count); 149_keyFrames = new List< DoubleKeyFrame>(count); 170_keyFrames = new List< DoubleKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Int16KeyFrameCollection.cs (6)
47_keyFrames = new List< Int16KeyFrame>(2); 65emptyCollection._keyFrames = new List< Int16KeyFrame>(0); 107_keyFrames = new List< Int16KeyFrame>(count); 128_keyFrames = new List< Int16KeyFrame>(count); 149_keyFrames = new List< Int16KeyFrame>(count); 170_keyFrames = new List< Int16KeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Int32KeyFrameCollection.cs (6)
47_keyFrames = new List< Int32KeyFrame>(2); 65emptyCollection._keyFrames = new List< Int32KeyFrame>(0); 107_keyFrames = new List< Int32KeyFrame>(count); 128_keyFrames = new List< Int32KeyFrame>(count); 149_keyFrames = new List< Int32KeyFrame>(count); 170_keyFrames = new List< Int32KeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Int64KeyFrameCollection.cs (6)
47_keyFrames = new List< Int64KeyFrame>(2); 65emptyCollection._keyFrames = new List< Int64KeyFrame>(0); 107_keyFrames = new List< Int64KeyFrame>(count); 128_keyFrames = new List< Int64KeyFrame>(count); 149_keyFrames = new List< Int64KeyFrame>(count); 170_keyFrames = new List< Int64KeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\MatrixKeyFrameCollection.cs (6)
47_keyFrames = new List< MatrixKeyFrame>(2); 65emptyCollection._keyFrames = new List< MatrixKeyFrame>(0); 107_keyFrames = new List< MatrixKeyFrame>(count); 128_keyFrames = new List< MatrixKeyFrame>(count); 149_keyFrames = new List< MatrixKeyFrame>(count); 170_keyFrames = new List< MatrixKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\ObjectKeyFrameCollection.cs (6)
47_keyFrames = new List< ObjectKeyFrame>(2); 65emptyCollection._keyFrames = new List< ObjectKeyFrame>(0); 107_keyFrames = new List< ObjectKeyFrame>(count); 128_keyFrames = new List< ObjectKeyFrame>(count); 149_keyFrames = new List< ObjectKeyFrame>(count); 170_keyFrames = new List< ObjectKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Point3DKeyFrameCollection.cs (6)
47_keyFrames = new List< Point3DKeyFrame>(2); 65emptyCollection._keyFrames = new List< Point3DKeyFrame>(0); 107_keyFrames = new List< Point3DKeyFrame>(count); 128_keyFrames = new List< Point3DKeyFrame>(count); 149_keyFrames = new List< Point3DKeyFrame>(count); 170_keyFrames = new List< Point3DKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\PointKeyFrameCollection.cs (6)
47_keyFrames = new List< PointKeyFrame>(2); 65emptyCollection._keyFrames = new List< PointKeyFrame>(0); 107_keyFrames = new List< PointKeyFrame>(count); 128_keyFrames = new List< PointKeyFrame>(count); 149_keyFrames = new List< PointKeyFrame>(count); 170_keyFrames = new List< PointKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\QuaternionKeyFrameCollection.cs (6)
47_keyFrames = new List< QuaternionKeyFrame>(2); 65emptyCollection._keyFrames = new List< QuaternionKeyFrame>(0); 107_keyFrames = new List< QuaternionKeyFrame>(count); 128_keyFrames = new List< QuaternionKeyFrame>(count); 149_keyFrames = new List< QuaternionKeyFrame>(count); 170_keyFrames = new List< QuaternionKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\RectKeyFrameCollection.cs (6)
47_keyFrames = new List< RectKeyFrame>(2); 65emptyCollection._keyFrames = new List< RectKeyFrame>(0); 107_keyFrames = new List< RectKeyFrame>(count); 128_keyFrames = new List< RectKeyFrame>(count); 149_keyFrames = new List< RectKeyFrame>(count); 170_keyFrames = new List< RectKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Rotation3DKeyFrameCollection.cs (6)
47_keyFrames = new List< Rotation3DKeyFrame>(2); 65emptyCollection._keyFrames = new List< Rotation3DKeyFrame>(0); 107_keyFrames = new List< Rotation3DKeyFrame>(count); 128_keyFrames = new List< Rotation3DKeyFrame>(count); 149_keyFrames = new List< Rotation3DKeyFrame>(count); 170_keyFrames = new List< Rotation3DKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\SingleKeyFrameCollection.cs (6)
47_keyFrames = new List< SingleKeyFrame>(2); 65emptyCollection._keyFrames = new List< SingleKeyFrame>(0); 107_keyFrames = new List< SingleKeyFrame>(count); 128_keyFrames = new List< SingleKeyFrame>(count); 149_keyFrames = new List< SingleKeyFrame>(count); 170_keyFrames = new List< SingleKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\SizeKeyFrameCollection.cs (6)
47_keyFrames = new List< SizeKeyFrame>(2); 65emptyCollection._keyFrames = new List< SizeKeyFrame>(0); 107_keyFrames = new List< SizeKeyFrame>(count); 128_keyFrames = new List< SizeKeyFrame>(count); 149_keyFrames = new List< SizeKeyFrame>(count); 170_keyFrames = new List< SizeKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\StringKeyFrameCollection.cs (6)
47_keyFrames = new List< StringKeyFrame>(2); 65emptyCollection._keyFrames = new List< StringKeyFrame>(0); 107_keyFrames = new List< StringKeyFrame>(count); 128_keyFrames = new List< StringKeyFrame>(count); 149_keyFrames = new List< StringKeyFrame>(count); 170_keyFrames = new List< StringKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\Vector3DKeyFrameCollection.cs (6)
47_keyFrames = new List< Vector3DKeyFrame>(2); 65emptyCollection._keyFrames = new List< Vector3DKeyFrame>(0); 107_keyFrames = new List< Vector3DKeyFrame>(count); 128_keyFrames = new List< Vector3DKeyFrame>(count); 149_keyFrames = new List< Vector3DKeyFrame>(count); 170_keyFrames = new List< Vector3DKeyFrame>(count);
Core\CSharp\System\Windows\Media\Animation\Generated\VectorKeyFrameCollection.cs (6)
47_keyFrames = new List< VectorKeyFrame>(2); 65emptyCollection._keyFrames = new List< VectorKeyFrame>(0); 107_keyFrames = new List< VectorKeyFrame>(count); 128_keyFrames = new List< VectorKeyFrame>(count); 149_keyFrames = new List< VectorKeyFrame>(count); 170_keyFrames = new List< VectorKeyFrame>(count);
Core\CSharp\System\Windows\Media\ColorContext.cs (1)
467colorContextsList = new List<ColorContext>((int)numContexts);
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (2)
491list = new List<T?>(maxIndex); 518_samplerData = new List<SamplerData?>(maxIndex);
Core\CSharp\System\Windows\Media\FamilyMap.cs (1)
248List<Range> ranges = new List<Range>(3);
Core\CSharp\System\Windows\Media\Imaging\BitmapDecoder.cs (1)
1735_frames = new List<BitmapFrame>((int)numFrames);
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (3)
346_frames = new List<BitmapFrame>(0); 912private IList<SafeMILHandle> _frameHandles = new List<SafeMILHandle>(0); 913private IList<SafeMILHandle> _writeSourceHandles = new List<SafeMILHandle>(0);
Core\CSharp\System\Windows\Media\Imaging\LateBoundBitmapDecoder.cs (1)
226_frames = new List<BitmapFrame>((int)1);
Core\CSharp\System\Windows\Media\PathGeometry.cs (1)
284List<Point> points = new List<Point>((int)pSegmentPoly->Count);
Core\CSharp\System\Windows\Media\TextFormatting\TextCharacters.cs (1)
274IList<TextShapeableSymbols> shapeables = new List<TextShapeableSymbols>(2);
Core\CSharp\System\Windows\UIElement.cs (2)
4717internal static List<double> DpiScaleXValues = new List<double>(3); 4718internal static List<double> DpiScaleYValues = new List<double>(3);
Graphics\include\exports.cs (2)
1273_others = new List<Entry>(2); // by default we have two entries in the extra storage. 1508List<Entry> others = new List<Entry>(2); // by default we have two entries in the extra storage.
PresentationFramework (204)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (2)
248List<ContentLocatorPart> res = new List<ContentLocatorPart>(1); 684IList<PointSegment> _segments = new List<PointSegment>(1);
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (4)
404returnLocators = new List<ContentLocatorBase>(0); 766List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 968locators = new List <ContentLocator> (1); 1257List<ContentLocatorBase> res = new List<ContentLocatorBase>(1);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionHelper.cs (4)
453res = new List<ITextView>(1); 467res = new List<ITextView>(0); 506res = new List<ITextView>(1); 543res = new List<ITextView>(endPageNumber - startPageNumber + 1);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (1)
184List<ContentLocatorPart> res = new List<ContentLocatorPart>(1);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (1)
146res = new List<ContentLocatorPart>(1);
src\Framework\MS\Internal\Annotations\Anchoring\TreeNodeSelectionProcessor.cs (1)
162return new List<ContentLocatorPart>(0);
src\Framework\MS\Internal\Annotations\AnnotationMap.cs (3)
39list = new List<IAttachedAnnotation>(1); 100List<IAttachedAnnotation> result = new List<IAttachedAnnotation>(_annotationIdToAttachedAnnotations.Keys.Count); 121private static readonly List<IAttachedAnnotation> _emptyList = new List<IAttachedAnnotation>(0);
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (5)
627List<IHighlightRange> list = new List<IHighlightRange>(1); 644_owners = new List<IHighlightRange>(owners.Count); 790res = new List<HighlightSegment>(1); 796res = new List<HighlightSegment>(2); 1228private List<TextSegment> _contentSegments = new List<TextSegment>(1);
src\Framework\MS\Internal\Annotations\TextAnchor.cs (2)
604List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count); 757private List<TextSegment> _segments = new List<TextSegment>(1);
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (1)
343List<GroupTreeNode> list = new List<GroupTreeNode>(parentGroups.Count + 1);
src\Framework\MS\Internal\Data\LiveShapingItem.cs (1)
192list = new List<CollectionViewGroupInternal>(2);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
941List<AsyncRequest> _asyncRequests = new List<AsyncRequest>(0);
src\Framework\MS\Internal\Documents\PageCache.cs (6)
50_cache = new List<PageCacheEntry>(_defaultCacheSize); 379List<PageCacheChange> changes = new List<PageCacheChange>(2); 543List<PageCacheChange> changes = new List<PageCacheChange>(1); 631List<PageCacheChange> changes = new List<PageCacheChange>(2); 726List<PageCacheChange> changes = new List<PageCacheChange>(PageCount); 880List<PageCacheChange> changes = new List<PageCacheChange>(1);
src\Framework\MS\Internal\Documents\RowCache.cs (5)
44_rowCache = new List<RowInfo>(_defaultRowCacheSize); 502List<RowCacheChange> changes = new List<RowCacheChange>(1); 600List<RowCacheChange> changes = new List<RowCacheChange>(1); 708List<RowInfo> tempRows = new List<RowInfo>(pivotPage / columns); 1243List<RowCacheChange> changes = new List<RowCacheChange>(args.Changes.Count);
src\Framework\MS\Internal\Documents\TextBoxView.cs (4)
420_lineMetrics = new List<LineRecord>(1); 1306List<TextSegment> segments = new List<TextSegment>(1); 1829_visualChildren = new List<TextBoxLineDrawingVisual>(1) ; 2683_viewportLineVisuals = new List<TextBoxLineDrawingVisual>(count);
src\Framework\MS\Internal\Documents\TextContainerHelper.cs (2)
98segments = new List<TextSegment>(1); 106segments = new List<TextSegment>(_size);
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
3301List<TextSegment> segments = new List<TextSegment>(1); 3573private static ReadOnlyCollection<ParagraphResult> _emptyParagraphCollection = new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0));
src\Framework\MS\Internal\Documents\TextParagraphView.cs (1)
510List<TextSegment> segments = new List<TextSegment>(1);
src\Framework\MS\Internal\Documents\UndoManager.cs (3)
84_undoStack = new List<IUndoUnit>(4); 739List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoCount); 791List<IUndoUnit> undoStack = new List<IUndoUnit>(UndoLimit);
src\Framework\MS\Internal\Globalization\BamlResourceContent.cs (1)
142List<BamlStringToken> tokens = new List<BamlStringToken>(8);
src\Framework\MS\Internal\Globalization\BamlTreeNode.cs (3)
50_nodeList = new List<BamlTreeNode>(size); 77List<BamlTreeNode> newNodeList = new List<BamlTreeNode>(Size); 109parent.Children = new List<BamlTreeNode>(children.Count);
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (1)
434IList<BamlTreeNode> list = new List<BamlTreeNode>(4);
src\Framework\MS\Internal\Globalization\LocalizationComments.cs (1)
96List<PropertyComment> tokens = new List<PropertyComment>(8);
src\Framework\MS\Internal\Helper.cs (1)
881itemValues = new List<KeyValuePair<int, object>>(3); // So far the only use of this is to store three values.
src\Framework\MS\Internal\Ink\ClipboardProcessor.cs (1)
428List<UIElement> children = new List<UIElement>(rootInkCanvas.Children.Count);
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
319_lasso = new List<Point>(100);
src\Framework\MS\Internal\PtsHost\ContainerParaClient.cs (2)
393return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 400List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (10)
647return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 654paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 673return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 687return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 694paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 727List<ColumnResult> columnResults = new List<ColumnResult>(0); 749columnResults = new List<ColumnResult>(1); 769columnResults = new List<ColumnResult>(1); 822ReadOnlyCollection<ParagraphResult> paragraphs = (columns.Count > 0) ? columns[0].Paragraphs : new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 860List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (10)
653return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 660paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 679return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 693return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 700paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 733List<ColumnResult> columnResults = new List<ColumnResult>(0); 755columnResults = new List<ColumnResult>(1); 775columnResults = new List<ColumnResult>(1); 828ReadOnlyCollection<ParagraphResult> paragraphs = (columns.Count > 0) ? columns[0].Paragraphs : new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 866List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (8)
345List<Rect> transformedRectangles = new List<Rect>(rectangles.Count); 380return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 390List<ParagraphResult> floatingElements = new List<ParagraphResult>(0); 431List<ColumnResult> columnResults = new List<ColumnResult>(0); 461columnResults = new List<ColumnResult>(1); 505columnResults = new List<ColumnResult>(sectionDetails.u.withpagenotes.cBasicColumns); 604return new ReadOnlyCollection<ParagraphResult>(new List<ParagraphResult>(0)); 610List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length);
src\Framework\MS\Internal\PtsHost\Line.cs (1)
304List<InlineObject> inlineObjects = new List<InlineObject>(1);
src\Framework\MS\Internal\PtsHost\PageVisual.cs (1)
137return new ReadOnlyCollection<Rect>(new List<Rect>(0));
src\Framework\MS\Internal\PtsHost\PtsCache.cs (1)
167_contextPool = new List<ContextDesc>(1);
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (1)
560List<Rect> offsetRectangles = new List<Rect>(rectangleList.Count);
src\Framework\MS\Internal\PtsHost\SubpageParaClient.cs (5)
610List<ColumnResult> columnResults = new List<ColumnResult>(0); 632columnResults = new List<ColumnResult>(1); 651columnResults = new List<ColumnResult>(subpageDetails.u.complex.cBasicColumns); 695List<ParagraphResult> paragraphResults = new List<ParagraphResult>(arrayParaDesc.Length); 771List<ParagraphResult> floatingElements = new List<ParagraphResult>(0);
src\Framework\MS\Internal\PtsHost\TableParaClient.cs (4)
752List<ParagraphResult> rowParagraphResults = new List<ParagraphResult>(0); 801List<ParagraphResult> cellParagraphResults = new List<ParagraphResult>(0); 851List<ParagraphResult> listResults = new List<ParagraphResult>(0); 872List<ParagraphResult> listResults = new List<ParagraphResult>(0);
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (7)
399ReadOnlyCollection<LineResult> lines = new ReadOnlyCollection<LineResult>(new List<LineResult>(0)); 462floaters = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 506figures = new List<ParagraphResult>(arrayAttachedObjectDesc.Length); 1721List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 1780List<LineResult> lines = new List<LineResult>(arrayLineDesc.Length); 2316rectangles = new List<Rect>(1); 2427rectangles = new List<Rect>(1);
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (2)
1095objects = new List<InlineObject>(_inlineObjects.Count); 1571objectsCached = new List<T>(objectsNew.Count);
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
466return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 482return new ReadOnlyCollection<Rect>(new List<Rect>(0));
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (1)
798List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count);
src\Framework\System\Windows\Annotations\AnnotationService.cs (6)
853List<IAttachedAnnotation> leftover = new List<IAttachedAnnotation>(annotations.Count); 915List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 970List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 1344List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(annotation.Anchors.Count); 1376List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(list.Length); 1541list = new List<IAttachedAnnotation>(1);
src\Framework\System\Windows\Annotations\LocatorGroup.cs (1)
240List<ContentLocatorBase> tempList = new List<ContentLocatorBase>(locatorGroup.Locators.Count * (this.Locators.Count - 1));
src\Framework\System\Windows\Annotations\LocatorPartList.cs (2)
393results = new List<ContentLocatorBase>(1); 398results = new List<ContentLocatorBase>(additionalLocatorParts.Count);
src\Framework\System\Windows\Annotations\Storage\XmlStreamStore.cs (2)
594retObj = new List<Guid>(iterator.Count); 617retObj = new List<Guid>(0);
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (1)
60children = new List<AutomationPeer>(1);
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (2)
551List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1); 573List<IRawElementProviderSimple> providers = new List<IRawElementProviderSimple>(1);
src\Framework\System\Windows\Automation\Peers\DataGridColumnHeadersPresenterAutomationPeer.cs (1)
82children = new List<AutomationPeer>(childItems.Count);
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (1)
443children = new List<AutomationPeer>(childItems.Count);
src\Framework\System\Windows\Automation\Peers\DataGridRowAutomationPeer.cs (1)
61List<AutomationPeer> children = new List<AutomationPeer>(3);
src\Framework\System\Windows\Automation\Peers\GridViewAutomationPeer.cs (1)
141List<IRawElementProviderSimple> array = new List<IRawElementProviderSimple>(_owner.HeaderRowPresenter.ActualColumnHeaders.Count);
src\Framework\System\Windows\Automation\Peers\GridViewHeaderRowPresenterAutomationPeer.cs (1)
55newList = new List<AutomationPeer>(list.Count);
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
135List<AutomationPeer> children = new List<AutomationPeer>(childItems.Count);
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (2)
86children = new List<AutomationPeer>(childItems.Count); 153children = new List<AutomationPeer>(childItems.Count);
src\Framework\System\Windows\Automation\Peers\MenuItemAutomationPeer.cs (1)
160children = new List<AutomationPeer>(items.Count);
src\Framework\System\Windows\Automation\Peers\SelectorAutomationPeer.cs (1)
101List<IRawElementProviderSimple> selectedProviders = new List<IRawElementProviderSimple>(count);
src\Framework\System\Windows\Automation\Peers\TreeViewAutomationPeer.cs (1)
80children = new List<AutomationPeer>(items.Count);
src\Framework\System\Windows\Controls\DataGridCellsPanel.cs (1)
1966_realizedChildren = new List<UIElement>(children.Count);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
28DisplayIndexMap = new List<int>(5);
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
1266pageViews = new ReadOnlyCollection<DocumentPageView>(new List<DocumentPageView>(0));
src\Framework\System\Windows\Controls\Frame.cs (1)
1419_commandBindings = new List<CommandBinding>(6);
src\Framework\System\Windows\Controls\Panel.cs (1)
1019stableKeyValues = new System.Collections.Generic.List<Int64>(count);
src\Framework\System\Windows\Controls\Primitives\DocumentViewerBase.cs (1)
452pageViewList = new List<DocumentPageView>(1/* simplest case has just one element */);
src\Framework\System\Windows\Controls\Primitives\GridViewRowPresenterBase.cs (1)
195DesiredWidthList = new List<double>(count);
src\Framework\System\Windows\Controls\Primitives\Selector.cs (2)
2016List<int> knownIndices = new List<int>(_selectedItems.Count); 2728_list = new List<ItemInfo>(capacity);
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (1)
360_generatedItemsCollection = new List<UIElement>(children.Count);
src\Framework\System\Windows\Controls\TextBlock.cs (8)
1384_subsequentLines = new List<LineMetrics>(subsequentLinesInitialSize); 1838return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1848return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1855return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1871return new ReadOnlyCollection<Rect>(new List<Rect>(0)); 1959return new HostedElements(new ReadOnlyCollection<TextSegment>(new List<TextSegment>(0))); 1963System.Collections.Generic.List<TextSegment> textSegmentsList = new System.Collections.Generic.List<TextSegment>(1); 2147List<LineResult> lines = new List<LineResult>(lineCount);
src\Framework\System\Windows\Controls\TextSearch.cs (1)
701_charsEntered = new List<string>(10);
src\Framework\System\Windows\Controls\ToolBarTray.cs (1)
993private List<BandInfo> _bands = new List<BandInfo>(0);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (4)
5596offsetList = new List<Double>(2); 9045_realizedChildren = new List<UIElement>(children.Count); 9315List<String> list = new List<String>(count); 9335List<String> list = new List<String>(count);
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
739List<TextSegment> rangeArray = new List<TextSegment>(4);
src\Framework\System\Windows\Documents\DocumentSequenceTextView.cs (1)
578List<TextSegment> parentSegments = new List<TextSegment>(childSegments.Count);
src\Framework\System\Windows\Documents\FixedTextView.cs (1)
741List<TextSegment> list = new List<TextSegment>(1);
src\Framework\System\Windows\Documents\Glyphs.cs (1)
554parsedGlyphs = new List<ParsedGlyphData>(estimatedNumberOfGlyphs);
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
206list = new List<TextSegment>(1);
src\Framework\System\Windows\Documents\TextRangeBase.cs (1)
1810thisRange._TextSegments = new List<TextSegment>(1);
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
344List<TextSegment> cellRange = new List<TextSegment>(lastRowIndex - firstRowIndex + 1); 380List<TextSegment> textSegments = new List<TextSegment>(1);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (3)
343rangeArray = new List<TextSegment>(1); 348rangeArray = new List<TextSegment>(1); 353rangeArray = new List<TextSegment>(2);
src\Framework\System\Windows\FrameworkContextData.cs (1)
94private List<WalkerEntry> _currentWalkers = new List<WalkerEntry>(4);
src\Framework\System\Windows\FrameworkElementFactory.cs (2)
777noChildIndexChildren = new List<DependencyObject>(4); 1060noChildIndexChildren = new List<DependencyObject>(4);
src\Framework\System\Windows\Input\KeyboardNavigation.cs (1)
3727List<WeakReference> _list = new List<WeakReference>(1);
src\Framework\System\Windows\Markup\BamlRecordReader.cs (1)
1783staticResourceValuesList = new List<object[]>(defKeyList.Capacity);
src\Framework\System\Windows\Markup\BamlRecordWriter.cs (3)
312_staticResourceRecordList = new List<ValueDeferRecord>(5); 1175_staticResourceRecordList = new List<ValueDeferRecord>(1); 1804_staticResourceRecordList = new List<List<ValueDeferRecord>>(1);
src\Framework\System\Windows\Markup\XamlTypeMapper.cs (1)
3479namespaceAssemblyPair = new List<ClrNamespaceAssemblyPair>(1);
src\Framework\System\Windows\Media\Animation\Generated\ThicknessKeyFrameCollection.cs (6)
47_keyFrames = new List< ThicknessKeyFrame>(2); 65emptyCollection._keyFrames = new List< ThicknessKeyFrame>(0); 107_keyFrames = new List< ThicknessKeyFrame>(count); 128_keyFrames = new List< ThicknessKeyFrame>(count); 149_keyFrames = new List< ThicknessKeyFrame>(count); 170_keyFrames = new List< ThicknessKeyFrame>(count);
src\Framework\System\Windows\Media\Animation\Storyboard.cs (1)
621clockList = new List<AnimationClock>(1);
src\Framework\System\Windows\ResourceDictionary.cs (2)
1855oldDictionaries = new List<ResourceDictionary>(e.OldItems.Count); 1873newDictionaries = new List<ResourceDictionary>(e.NewItems.Count);
src\Framework\System\Windows\ResourcesChangeInfo.cs (2)
50_oldDictionaries = new List<ResourceDictionary>(1); 57_newDictionaries = new List<ResourceDictionary>(1);
src\Framework\System\Windows\Shell\JumpList.cs (6)
609successList = new List<JumpItem>(JumpItems.Count); 612rejectedList = new List<_RejectedJumpItemPair>(JumpItems.Count); 759var items = new List<JumpItem>(rejectedList.Count); 760var reasons = new List<JumpItemRejectionReason>(rejectedList.Count); 773var items = new List<JumpItem>(removedList.Count); 1254var reasons = new List<JumpItemRejectionReason>(_jumpItems.Count);
src\Framework\System\Windows\StyleHelper.cs (4)
1795List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 1854List<DependencyObject> affectedChildren = new List<DependencyObject>(lastChildIndex); 3560dictionaries = new List<ResourceDictionary>(1); 3586List<ResourceDictionary> table = new List<ResourceDictionary>(1);
src\Framework\System\Windows\TriggerActionCollection.cs (1)
40_rawList = new List<TriggerAction>(initialSize);
PresentationFramework.Aero (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
323_freezableCache = new List<Freezable>(size);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
323_freezableCache = new List<Freezable>(size);
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
323_freezableCache = new List<Freezable>(size);
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
323_freezableCache = new List<Freezable>(size);
System (21)
compmod\system\collections\generic\sortedset.cs (3)
1177List<T> toSave = new List<T>(this.Count); 1643List<T> matches = new List<T>(this.Count); 1983List<T> toSave = new List<T>(this.Count);
compmod\system\collections\objectmodel\observablecollection.cs (1)
61: base((list != null) ? new List<T>(list.Count) : list)
compmod\system\diagnostics\Switch.cs (1)
70List<WeakReference> buffer = new List<WeakReference>(switches.Count);
compmod\system\diagnostics\TraceSource.cs (1)
54List<WeakReference> buffer = new List<WeakReference>(tracesources.Count);
net\System\Net\_Connection.cs (2)
103m_Context = new List<RequestContext>(5); 108m_Context = new List<RequestContext>(capacity);
net\System\Net\_NTAuthentication.cs (3)
672List<SecurityBuffer> list = new List<SecurityBuffer>(2); 804List<SecurityBuffer> list = new List<SecurityBuffer>(5); 852List<SecurityBuffer> list = new List<SecurityBuffer>(6);
net\System\Net\Configuration\AuthenticationModulesSection.cs (1)
113retval = new List<Type>(0);
net\System\Net\SecureProtocols\_SslStream.cs (1)
488arrayList = new List<BufferOffsetSize>(buffers.Length * (buffer.Size/chunkBytes+1));
net\System\Net\WebSockets\WebSocketBase.cs (1)
1801List<ArraySegment<byte>> sendBuffers = new List<ArraySegment<byte>>((int)dataBufferCount);
parent\parent\parent\InternalApis\NDP_Common\inc\PinnableBufferCache.cs (1)
51m_NotGen2 = new List<object>(DefaultNumberOfBuffers);
regex\system\text\regularexpressions\RegexCharClass.cs (2)
509_rangelist = new List<SingleRange>(6); 1011List<SingleRange> ranges = new List<SingleRange>(mySetLength);
regex\system\text\regularexpressions\RegexNode.cs (1)
557_children = new List<RegexNode>(4);
services\monitoring\system\diagnosticts\EventLog.cs (1)
1019List<EventLog> logs = new List<EventLog>(logNames.Length);
sys\system\collections\concurrent\BlockingCollection.cs (2)
1101List<WaitHandle> handlesList = new List<WaitHandle>(collections.Length + 1); // + 1 for the external token handle to be added 1102List<CancellationToken> tokensList = new List<CancellationToken>(collections.Length + 1); // + 1 for the external token
System.Activities (86)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (14)
768arguments = new List<Expression>(tmpArguments.Count); 802List<ElementInit> initializers = new List<ElementInit>(tmpInitializers.Count); 807arguments = new List<Expression>(tmpArguments.Count); 911List<MemberBinding> bindings = new List<MemberBinding>(tmpMemberBindings.Count); 936List<Expression> indexes = new List<Expression>(tmpArguments.Count); 974arguments = new List<Expression>(tmpArguments.Count); 992List<Expression> arrayInitializers = new List<Expression>(tmpExpressions.Count); 1009List<Expression> bounds = new List<Expression>(tmpExpressions.Count); 1035arguments = new List<Expression>(tmpArguments.Count); 1091List<ParameterExpression> parameterList = new List<ParameterExpression>(tmpVariables.Count); 1103List<Expression> expressionList = new List<Expression>(tmpExpressions.Count); 1162initializers = new List<ElementInit>(tmpInitializers.Count); 1170arguments = new List<Expression>(tmpArguments.Count); 1191List<MemberBinding> bindings = new List<MemberBinding>(tmpBindings.Count);
System\Activities\Activity.cs (5)
32static readonly IList<Activity> emptyChildren = new List<Activity>(0); 33static readonly IList<Variable> emptyVariables = new List<Variable>(0); 34static readonly IList<RuntimeArgument> emptyArguments = new List<RuntimeArgument>(0); 35static readonly IList<ActivityDelegate> emptyDelegates = new List<ActivityDelegate>(0); 1676List<string> overloadGroupNames = new List<string>(0);
System\Activities\ActivityAction.cs (17)
12static readonly IList<RuntimeDelegateArgument> EmptyDelegateParameters = new List<RuntimeDelegateArgument>(0); 39IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(1) 69IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(2) 107IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(3) 153IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(4) 207IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(5) 269IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(6) 340IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(7) 418IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(8) 504IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(9) 598IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(10) 700IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(11) 810IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(12) 928IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(13) 1054IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(14) 1188IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(15) 1330IList<RuntimeDelegateArgument> result = new List<RuntimeDelegateArgument>(16)
System\Activities\ActivityFunc.cs (17)
30IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(1) 66IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(2) 109IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(3) 160IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(4) 219IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(5) 286IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(6) 361IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(7) 444IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(8) 535IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(9) 634IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(10) 741IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(11) 856IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(12) 979IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(13) 1110IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(14) 1249IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(15) 1396IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(16) 1551IList<RuntimeDelegateArgument> parameters = new List<RuntimeDelegateArgument>(17)
System\Activities\ActivityUtilities.cs (2)
87collectionInterfaces = new List<Type>(2) 1223this.multipleItems = new List<ActivityInstance>(2);
System\Activities\Debugger\DebugInfo.cs (1)
301List<RuntimeArgument> cleanUpList = new List<RuntimeArgument>(ancestorArguments.Count);
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (1)
55this.Symbols = new List<ActivitySymbol>(numSymbols);
System\Activities\DurableInstancing\ActivatableWorkflowsQueryResult.cs (2)
23ActivationParameters = new List<IDictionary<XName, object>>(0); 36ActivationParameters = new List<IDictionary<XName, object>>(0);
System\Activities\DynamicActivityTypeDescriptor.cs (1)
111List<PropertyDescriptor> propertyDescriptors = new List<PropertyDescriptor>(this.Properties.Count + 2);
System\Activities\ExpressionUtilities.cs (3)
1211temporaryBindings = new List<MemberBinding>(bindings.Count); 1305temporaryExpressions = new List<Expression>(expressions.Count); 1349temporaryInitializers = new List<ElementInit>(initializers.Count);
System\Activities\Hosting\SymbolResolver.cs (1)
42List<object> values = new List<object>(this.symbols.Count);
System\Activities\Hosting\WorkflowInstanceExtensionCollection.cs (1)
135this.instanceExtensions = new List<KeyValuePair<WorkflowInstanceExtensionProvider, object>>(extensionProviderCount);
System\Activities\Hosting\WorkflowInstanceExtensionManager.cs (2)
18internal static List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>> EmptyExtensionProviders = new List<KeyValuePair<Type, WorkflowInstanceExtensionProvider>>(0); 19internal static List<object> EmptySingletonExtensions = new List<object>(0);
System\Activities\HybridCollection.cs (1)
109this.multipleItems = new List<T>(2);
System\Activities\Runtime\ActivityExecutor.cs (1)
527emptyBookmarkInfoCollection = new ReadOnlyCollection<BookmarkInfo>(new List<BookmarkInfo>(0));
System\Activities\Runtime\BookmarkScopeManager.cs (2)
484this.keysToAssociate = new List<InstanceKey>(2); 515this.keysToDisassociate = new List<InstanceKey>(2);
System\Activities\Runtime\ExecutionPropertyManager.cs (2)
306this.threadProperties = new List<ExecutionProperty>(1); 311List<ExecutionProperty> updatedProperties = new List<ExecutionProperty>(this.threadProperties.Count);
System\Activities\RuntimeArgument.cs (1)
129this.overloadGroupNames = new List<string>(0);
System\Activities\Statements\CompensableActivity.cs (1)
202return new List<Constraint>(1) { noCompensableActivityInSecondaryRoot };
System\Activities\Statements\Compensate.cs (1)
89return new List<Constraint>(1) { compensateWithNoTarget };
System\Activities\Statements\CompensationExtension.cs (1)
161new List<object>(6)
System\Activities\Statements\Confirm.cs (1)
97return new List<Constraint>(1) { confirmWithNoTarget };
System\Activities\Statements\Flowchart.cs (1)
205List<Activity> children = new List<Activity>(uniqueChildren.Count);
System\Activities\Tracking\ActivityStateRecord.cs (1)
26static ReadOnlyCollection<string> wildcardCollection = new ReadOnlyCollection<string>(new List<string>(1) { "*" });
System\Activities\Validation\ActivityValidationServices.cs (1)
19internal static ReadOnlyCollection<ValidationError> EmptyValidationErrors = new ReadOnlyCollection<ValidationError>(new List<ValidationError>(0));
System\Activities\Validation\Constraint.cs (1)
71List<ValidationError> validationErrorList = new List<ValidationError>(1);
System\Activities\WorkflowApplication.cs (1)
1184workflowExecutionProperties = new List<Handle>(1)
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
181IList<Location> temp = new List<Location>(locationReferences.Count);
System\Activities\XamlIntegration\CompiledLocation.cs (2)
145List<Tuple<string, Type>> durableCache = new List<Tuple<string, Type>>(this.locationReferences.Count); 162this.locationReferences = new List<LocationReference>(value.Count);
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartDesigner.Helpers.cs (1)
264List<ConnectionPoint> allConnectionPoints = new List<ConnectionPoint>(6);
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
196var members = new List<MemberInfo>(1);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\CorrelationKey.cs (1)
68result = new List<CorrelationKey>(keys.Count);
TD.Designer.cs (1)
473System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(7);
System.Activities.Presentation (20)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (1)
115_properties = new List<ModelPropertyEntry>(subProperties.Count);
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
157existingModelPropertiesForProperty = new List<ModelProperty>(expander.ContainerCount);
System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
274objectsOnClipboard = new List<object>(modelItemsToCutCopy.Count);
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
307List<DesignObjectPropertyDescriptor> descriptors = new List<DesignObjectPropertyDescriptor>(properties.Length);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
275List<EditPoint> editPointsToRetain = new List<EditPoint>(this.editPoints.Count);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
537List<DistanceFromPoint> extremitiesList = new List<DistanceFromPoint>(4);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
46this.parents = new List<ModelItem>(1); 47this.sources = new List<ModelProperty>(1);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
48this.parents = new List<ModelItem>(1); 49this.sources = new List<ModelProperty>(1);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (3)
74List<ModelItem> modelItemsAdded = new List<ModelItem>(1); 86List<ModelItem> modelItemsRemoved = new List<ModelItem>(1); 123List<ModelProperty> propertiesChanged = new List<ModelProperty>(1);
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeConverter.cs (1)
142List<PropertyDescriptor> newProps = new List<PropertyDescriptor>(props.Count);
System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (2)
36undoBuffer = new List<UndoUnit>(capacity); 37redoBuffer = new List<UndoUnit>(capacity);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (4)
1432List<object> itemsToPaste = new List<object>(1); 1490List<object> itemsToPaste = new List<object>(1); 1491List<object> metaData = new List<object>(1); 1494List<FlowNode> flowchartMetaData = new List<FlowNode>(1);
System.AddIn (4)
System\Addin\Hosting\AddInStore.cs (1)
1401List<AddInToken> result = new List<AddInToken>(validPipelines.Count);
System\Addin\Hosting\InspectionWorker.cs (1)
128List<String> potentialFileNames = new List<string>(dirsToLookIn.Count * 2);
System\Addin\Hosting\Utils.cs (1)
224List<String> potentialFileNames = new List<string>(dirsToLookIn.Count * 2);
System\Addin\Pipeline\ContractBase.cs (1)
75List<String> identifiers = new List<String>(interfaces.Length);
System.ComponentModel.DataAnnotations (1)
DataAnnotations\Validator.cs (1)
444List<KeyValuePair<ValidationContext, object>> items = new List<KeyValuePair<ValidationContext, object>>(properties.Count);
System.Configuration (2)
System\Configuration\BaseConfigurationRecord.cs (1)
463indirectLocationInputs.Add(configKey, new List<SectionInput>(1));
System\Configuration\SectionRecord.cs (1)
255inputs = new List<SectionInput>(1);
System.Core (21)
Microsoft\Scripting\Ast\BinaryExpression.cs (3)
263var vars = new List<ParameterExpression>(index.Arguments.Count + 2); 264var exprs = new List<Expression>(index.Arguments.Count + 3); 270var tempArgs = new List<Expression>(index.Arguments.Count);
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
180var indexes = new List<long>(vars.Count);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (2)
581var initializers = new List<ElementInit>(tests); 582var cases = new List<SwitchCase>(node.Cases.Count);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (1)
181List<Expression> comma = new List<Expression>(count + 1);
System\Diagnostics\Eventing\Reader\EventLogReader.cs (1)
343list = new List<EventLogStatus>(channelNames.Length);
System\Diagnostics\Eventing\Reader\EventLogSession.cs (2)
194List<string> namesList = new List<string>(100); 216List<string> namesList = new List<string>(100);
System\Diagnostics\Eventing\Reader\NativeWrapper.cs (1)
939List<object> valuesList = new List<object>(propCount);
System\Diagnostics\Eventing\Reader\ProviderMetadata.cs (5)
175List<EventLogLink> channelList = new List<EventLogLink>(arraySize); 312levelList = new List<EventLevel>(arraySize); 320opcodeList = new List<EventOpcode>(arraySize); 328keywordList = new List<EventKeyword>(arraySize); 336taskList = new List<EventTask>(arraySize);
System\Linq\Expressions\ExpressionVisitor.cs (3)
180list = new List<Expression>(n); 224list = new List<MemberBinding>(n); 248list = new List<ElementInit>(n);
System\Linq\SequenceQuery.cs (2)
231newArgs = new List<Expression>(argList.Count); 260List<Expression> exprs = new List<Expression>(na.Expressions.Count);
System.Data (30)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (1)
115_properties = new List<ModelPropertyEntry>(subProperties.Count);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (1)
157existingModelPropertiesForProperty = new List<ModelProperty>(expander.ContainerCount);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\CutCopyPasteHelper.cs (1)
274objectsOnClipboard = new List<object>(modelItemsToCutCopy.Count);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (1)
307List<DesignObjectPropertyDescriptor> descriptors = new List<DesignObjectPropertyDescriptor>(properties.Length);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (1)
275List<EditPoint> editPointsToRetain = new List<EditPoint>(this.editPoints.Count);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (1)
537List<DistanceFromPoint> extremitiesList = new List<DistanceFromPoint>(4);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemCollectionImpl.cs (2)
46this.parents = new List<ModelItem>(1); 47this.sources = new List<ModelProperty>(1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelItemDictionaryImpl.cs (2)
48this.parents = new List<ModelItem>(1); 49this.sources = new List<ModelProperty>(1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelServiceImpl.cs (3)
74List<ModelItem> modelItemsAdded = new List<ModelItem>(1); 86List<ModelItem> modelItemsRemoved = new List<ModelItem>(1); 123List<ModelProperty> propertiesChanged = new List<ModelProperty>(1);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeConverter.cs (1)
142List<PropertyDescriptor> newProps = new List<PropertyDescriptor>(props.Count);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\UndoEngine.cs (2)
36undoBuffer = new List<UndoUnit>(capacity); 37redoBuffer = new List<UndoUnit>(capacity);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (4)
1432List<object> itemsToPaste = new List<object>(1); 1490List<object> itemsToPaste = new List<object>(1); 1491List<object> metaData = new List<object>(1); 1494List<FlowNode> flowchartMetaData = new List<FlowNode>(1);
fx\src\data\System\Data\Common\DBConnectionString.cs (1)
386List<string> newlist = new List<string>(a.Length + b.Length);
fx\src\data\System\Data\OleDb\OledbConnectionStringbuilder.cs (1)
634System.Collections.Generic.List<string> providerNames = new System.Collections.Generic.List<string>(table.Rows.Count);
fx\src\data\System\Data\ProviderBase\DbConnectionPool.cs (2)
45internal TransactedConnectionList(int initialAllocation, SysTx.Transaction tx) : base(initialAllocation) { 493_objectList = new List<DbConnectionInternal>(MaxPoolSize);
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (1)
565_sortedColumnMappings = new List<_ColumnMapping>(metaDataSet.Length);
fx\src\data\System\Data\SqlClient\SqlParameter.cs (3)
1100fields = new List<MSS.SmiExtendedMetaData>(dt.Columns.Count); 1171fields = new List<MSS.SmiExtendedMetaData>(fieldCount); 1276fields = new List<MSS.SmiExtendedMetaData>(fieldCount);
fx\src\data\System\Data\SqlClient\TdsParser.cs (1)
9095List<TdsOrderUnique> columnList = new List<TdsOrderUnique>(metaData.FieldMetaData.Count);
fx\src\data\System\Data\XMLSchema.cs (1)
2344List<DataTable> _tableList = new List<DataTable>(_ds.Tables.Count);
System.Data.Entity (124)
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (1)
2505List<DbSortClause> newSortOrder = new List<DbSortClause>(source.SortOrder.Count + 1);
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (3)
547List<KeyValuePair<string, TypeUsage>> columns = new List<KeyValuePair<string, TypeUsage>>(2); 1635List<TypeUsage> memberTypes = new List<TypeUsage>(members.Count); 1654List<DbRelatedEntityRef> relatedRefs = new List<DbRelatedEntityRef>(relationships.Count);
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
68List<TypeUsage> paramTypes = new List<TypeUsage>(function.Parameters.Count);
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (6)
203conditions = new List<DbExpression>(discriminatedConstructor.When.Count); 257List<DbExpression> whens = new List<DbExpression>(conditions.Count); 258List<DbExpression> thens = new List<DbExpression>(conditions.Count); 487List<DbExpression> newWhens = new List<DbExpression>(entitySelector.When.Count); 488List<DbExpression> newThens = new List<DbExpression>(entitySelector.Then.Count); 568List<DbExpression> rewrittenPredicates = new List<DbExpression>(caseExpression.When.Count);
System\Data\Common\DataRecordInfo.cs (1)
36List<FieldMetadata> fieldList = new List<FieldMetadata>(members.Count);
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (3)
97List<TypeUsage> argTypesFlat = new List<TypeUsage>(argTypes.Count); 108List<int[]> ranks = new List<int[]>(functionsMetadata.Count); 214List<TypeUsage> flatOverloadParamList = new List<TypeUsage>(flatArgumentList.Count);
System\Data\Common\EntitySql\SemanticAnalyzer.cs (13)
1014relshipExprList = new List<DbRelatedEntityRef>(methodExpr.Relationships.Count); 2535List<DbExpression> fieldExprs = new List<DbExpression>(rowExpr.AliasedExprList.Count); 2627List<DbExpression> whenExprList = new List<DbExpression>(caseExpr.WhenThenExprList.Count); 2628List<DbExpression> thenExprList = new List<DbExpression>(caseExpr.WhenThenExprList.Count); 2879List<KeyValuePair<string, DbExpression>> projectionItems = new List<KeyValuePair<string, DbExpression>>(selectClause.Items.Count); 3422List<GroupKeyInfo> groupKeys = new List<GroupKeyInfo>(groupKeysCount); 3726List<KeyValuePair<string, DbAggregate>> aggregates = new List<KeyValuePair<string, DbAggregate>>(sr.CurrentScopeRegion.GroupAggregateInfos.Count); 4159List<DbSortClause> sortKeys = new List<DbSortClause>(orderByClause.OrderByClauseItem.Count); 4402List<TypeUsage> argTypes = new List<TypeUsage>(2); 4770List<DbExpression> whenExpr = new List<DbExpression>(1); 4772List<DbExpression> thenExpr = new List<DbExpression>(1); 4805List<DbExpression> whenExpr = new List<DbExpression>(1); 4807List<DbExpression> thenExpr = new List<DbExpression>(1);
System\Data\Common\EntitySql\StaticContext.cs (1)
210_propRefs = new List<string>(2);
System\Data\Common\Internal\Materialization\Shaper.cs (1)
265spannedEntities = new List<IEntityWrapper>(1);
System\Data\Common\Internal\Materialization\Translator.cs (5)
903List<Expression> keyReaders = new List<Expression>(entityIdentity.Keys.Length); 1355List<MemberBinding> result = new List<MemberBinding>(columnMap.Properties.Length); 1662List<TranslatorResult> propertyReaders = new List<TranslatorResult>(columnMap.Properties.Length); 1988List<Expression> setKeyTerms = new List<Expression>(keyReaders.Length); 1989List<Expression> checkKeyTerms = new List<Expression>(keyReaders.Length);
System\Data\Common\QueryCache\QueryCacheManager.cs (1)
287List<QueryCacheKey> cacheKeys = new List<QueryCacheKey>(_cacheData.Count);
System\Data\Common\Utils\Boolean\Simplifier.cs (2)
62List<BoolExpr<T_Identifier>> simplifiedChildren = new List<BoolExpr<T_Identifier>>(tree.Children.Count); 80List<BoolExpr<T_Identifier>> otherChildren = new List<BoolExpr<T_Identifier>>(tree.Children.Count);
System\Data\EntityClient\EntityCommandDefinition.cs (2)
79_mappedCommandDefinitions = new List<DbCommandDefinition>(mappedCommandList.Count); 117_mappedCommandDefinitions = new List<DbCommandDefinition>(1) { storeCommandDefinition };
System\Data\EntityModel\SchemaObjectModel\ItemType.cs (1)
27private static List<PropertyRefElement> EmptyKeyProperties = new List<PropertyRefElement>(0);
System\Data\EntityModel\SchemaObjectModel\Schema.cs (1)
57private static IList<string> _emptyPathList = new List<string>(0).AsReadOnly();
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (1)
73IList<Schema> schemaCollection = new List<Schema>(1);
System\Data\Mapping\FunctionImportMapping.cs (1)
111var columnMappings = new List<FunctionImportEntityTypeMappingCondition>(this.DiscriminatorColumns.Count);
System\Data\Mapping\FunctionImportMappingComposable.cs (2)
317List<DbExpression> structuralTypeMappingViews = new List<DbExpression>(m_structuralTypeMappings.Count); 362var constructorArgs = new List<DbExpression>(properties.Count);
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (3)
47m_inputIdentifiers = new List<KeyValuePair<int ,DbSetClause>>(capacity); 229List<DbModificationClause> result = new List<DbModificationClause>(originalClauses.Count); 286List<IEntityStateEntry> stateEntries = new List<IEntityStateEntry>(2);
System\Data\Mapping\Update\Internal\FunctionUpdateCommand.cs (2)
148m_inputIdentifiers = new List<KeyValuePair<int, DbParameter>>(initialSize); 176m_resultColumns = new List<KeyValuePair<string, PropagatorResult>>(initializeSize);
System\Data\Mapping\Update\Internal\KeyManager.cs (1)
452_nodeIds = new List<int>(2);
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (1)
113List<UpdateCommand> commands = new List<UpdateCommand>(deleteResults.Count + insertResults.Count);
System\Data\Mapping\Update\Internal\UpdateCompiler.cs (1)
332List<DbModificationClause> result = new List<DbModificationClause>(setClauses.Count);
System\Data\Mapping\Update\Internal\UpdateTranslator.cs (1)
691List<EdmProperty> properties = new List<EdmProperty>(functionMapping.ResultBindings.Count);
System\Data\Mapping\ViewGeneration\CellTreeSimplifier.cs (2)
180List<OpCellTreeNode> newChildren = new List<OpCellTreeNode>(children.Count); 185List<LeafCellTreeNode> newGrandChildren = new List<LeafCellTreeNode>(child.Children.Count);
System\Data\Mapping\ViewGeneration\Structures\CellQuery.cs (3)
461List<MemberPath> prefixes = new List<MemberPath>(1); 463List<ExtentKey> keys = new List<ExtentKey>(1); 728m_boolExprs = new List<BoolExpression>(numBoolVars);
System\Data\Mapping\ViewGeneration\Validation\ForeignConstraint.cs (2)
689childPaths = new List<MemberPath>(childSlotNums.Count); 713parentPaths = new List<MemberPath>(parentSlotNums.Count);
System\Data\Metadata\Edm\EntityType.cs (1)
187List<EdmProperty> keyProperties = new List<EdmProperty>(KeyMembers.Count);
System\Data\Metadata\Edm\FilteredReadOnlyMetadataCollection.cs (1)
151List<TDerived> list = new List<TDerived>(collection.Count);
System\Data\Metadata\Edm\ItemCollection.cs (1)
359List<EdmFunction> caseSensitiveFunctionOverloads = new List<EdmFunction>(functionOverloads.Count);
System\Data\Metadata\Edm\MetadataCollection.cs (1)
698this.OrderedList = new List<T>(original.OrderedList.Count + additionalCapacity);
System\Data\Metadata\Edm\NavigationProperty.cs (1)
156var dependantProperties = new List<EdmProperty>(keyMembers.Count);
System\Data\Objects\DataClasses\RelationshipManager.cs (1)
288List<IEntityWrapper> tempEntities = new List<IEntityWrapper>(collection.CountInternal);
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (3)
213list = new List<Expression>(n); 268list = new List<MemberBinding>(n); 293list = new List<ElementInit>(n);
System\Data\Objects\ELinq\ExpressionConverter.cs (3)
1472List<TypeUsage> translatedArgumentTypes = new List<TypeUsage>(translatedArguments.Length); 1574List<DbExpression> propertyValues = new List<DbExpression>(columns.Count); 1575List<EdmProperty> properties = new List<EdmProperty>(columns.Count);
System\Data\Objects\ELinq\MethodCallTranslator.cs (8)
864List<LinqExpression> arguments = new List<LinqExpression>(call.Arguments.Count + 1); 1777List<DbExpression> arguments = new List<DbExpression>(1); 1823List<TypeUsage> argTypes = new List<TypeUsage>(1); 2335List<CqtExpression> whenExpressions = new List<CqtExpression>(1); 2338List<CqtExpression> thenExpressions = new List<CqtExpression>(1); 2788List<EdmProperty> properties = new List<EdmProperty>(2); 2885List<KeyValuePair<string, CqtExpression>> recordColumns = new List<KeyValuePair<string, CqtExpression>>(2); 2987List<DbSortClause> keys = new List<DbSortClause>(1);
System\Data\Objects\ELinq\Translator.cs (7)
369new List<KeyValuePair<string, DbExpression>>(2); 722new List<KeyValuePair<string, DbExpression>>(memberCount + 1); 825new List<KeyValuePair<string, DbExpression>>(linq.Bindings.Count + 1); 873List<DbExpression> whenExpressions = new List<DbExpression>(1); 875List<DbExpression> thenExpressions = new List<DbExpression>(1); 937List<DbExpression> whenExpressions = new List<DbExpression>(1); 939List<DbExpression> thenExpressions = new List<DbExpression>(1);
System\Data\Objects\Internal\EntityProxyFactory.cs (1)
619private List<FieldBuilder> _serializedFields = new List<FieldBuilder>(3);
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
235parameters = new List<DbParameterReferenceExpression>(this.Parameters.Count);
System\Data\Objects\Internal\ObjectSpanRewriter.cs (4)
408List<DbExpression> columnArguments = new List<DbExpression>(rowType.Properties.Count); 409List<EdmProperty> properties = new List<EdmProperty>(rowType.Properties.Count); 531List<DbVariableReferenceExpression> formals = new List<DbVariableReferenceExpression>(1); 534List<DbExpression> args = new List<DbExpression>(1);
System\Data\Objects\ObjectStateManager.cs (6)
1111List<RelationshipEntry> deletedRelationships = new List<RelationshipEntry>(_initialListSize); 1195entriesToUpdate = new List<RelationshipEntry>(_initialListSize); 1226entriesToDetach = new List<RelationshipEntry>(_initialListSize); 1240entriesToDetach = new List<RelationshipEntry>(_initialListSize); 1249entriesToDetach = new List<RelationshipEntry>(_initialListSize); 1938entries = new List<EntityEntry>(GetMaxEntityEntriesForDetectChanges());
System\Data\Objects\ObjectViewEntityCollectionData.cs (1)
65_bindingList = new List<TViewElement>(entityCollection.Count);
System\Data\Query\PlanCompiler\AggregatePushdown.cs (1)
572List<Node> newChildren = new List<Node>(n.Children.Count);
System\Data\Query\PlanCompiler\ITreeGenerator.cs (6)
132List<Node> sources = new List<Node>(1); 135List<Node> copies = new List<Node>(1); 530List<Node> arguments = new List<Node>((expr.ExpressionKind == DbExpressionKind.IsNull) ? 3 : 5); 1065List<Node> argNodes = new List<Node>(e.Arguments.Count); 1088var argNodes = new List<Tuple<Node, bool>>(arguments.Count); 2217List<Node> newArgs = new List<Node>(_discriminatorMap.PropertyMap.Count + 1);
System\Data\Query\PlanCompiler\JoinGraph.cs (3)
1097List<KeyValuePair<ColumnVar, ColumnVar>> edgeVars = new List<KeyValuePair<ColumnVar, ColumnVar>>(keyVars.Count); 1142List<JoinEdge> newJoinEdges = new List<JoinEdge>(augmentedJoinNode.JoinEdges.Count); 2057childForeignKeyVars = new List<ColumnVar>(fkConstraint.ChildKeys.Count);
System\Data\Query\PlanCompiler\NestPullup.cs (1)
1416List<Node> newProjectOpChildren = new List<Node>(projectNode.Child1.Children.Count);
System\Data\Query\PlanCompiler\NominalTypeEliminator.cs (2)
2008List<Node> children = new List<Node>(3); 2601List<Node> children = new List<Node>(op.DiscriminatorMap.TypeMap.Count * 2 - 1);
System\Data\Query\PlanCompiler\PreProcessor.cs (5)
843List<Node> scanTableNodes = new List<Node>(relationshipSets.Count); 844List<Var> scanTableVars = new List<Var>(relationshipSets.Count); 915List<Node> joinNodes = new List<Node>(relationshipSets.Count); 916List<Var> outputVars = new List<Var>(relationshipSets.Count * 2); 2001List<Node> caseArgNodes = new List<Node>(n.Children.Count * 2 + 1);
System\Data\SqlClient\SqlGen\JoinSymbol.cs (1)
92extentList = new List<Symbol>(extents.Count);
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (2)
137IList<DbPropertyExpression> sortExpressions = new List<DbPropertyExpression>(e.SortOrder.Count); 424List<KeyValuePair<string, DbExpression>> projectColumns = new List<KeyValuePair<string, DbExpression>>(flattenedProperties.Count);
System\Data\SqlClient\SqlGen\SqlGenerator.cs (1)
1649List<DbExpressionBinding> inputs = new List<DbExpressionBinding>(2);
System.Data.Entity.Design (7)
System\Data\Entity\Design\Common\OneToOneMappingSerializer.cs (1)
46private List<AssociationSet> _storeAssociationSets = new List<AssociationSet>(2);
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (5)
363List<string> ssdlLocations = new List<string>(1); 371List<string> csdlLocations = new List<string>(1); 379List<string> mslLocations = new List<string>(1); 1167List<string> pKeys = new List<string>(columns.Count); 1601List<KeyValuePair<string, DbExpression>> projectList = new List<KeyValuePair<string, DbExpression>>(entitySet.ElementType.Members.Count);
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
148List<EdmProperty> parameters = new List<EdmProperty>(properties.Count);
System.Data.Linq (33)
DataContext.cs (1)
811List<Expression> args = new List<Expression>(parameters.Length);
Mapping\AttributedMetaModel.cs (4)
864static ReadOnlyCollection<MetaParameter> _emptyParameters = new List<MetaParameter>(0).AsReadOnly(); 865static ReadOnlyCollection<MetaType> _emptyTypes = new List<MetaType>(0).AsReadOnly(); 893this.rowTypes = new List<MetaType>(1) { this.GetMetaType(elementType) }.AsReadOnly(); 914List<MetaParameter> mps = new List<MetaParameter>(pis.Length);
Mapping\MappedMetaModel.cs (4)
1335static ReadOnlyCollection<MetaParameter> _emptyParameters = new List<MetaParameter>(0).AsReadOnly(); 1336static ReadOnlyCollection<MetaType> _emptyTypes = new List<MetaType>(0).AsReadOnly(); 1354this.rowTypes = new List<MetaType>(1) { this.GetMetaType(map.Types[0], elementType) }.AsReadOnly(); 1378List<MetaParameter> mps = new List<MetaParameter>(pis.Length);
SqlClient\Common\SqlNode.cs (1)
1037this.values = values != null ? new List<SqlExpression>(values) : new List<SqlExpression>(0);
SqlClient\Query\Funcletizer.cs (3)
307list = new List<Expression>(n); 351list = new List<MemberBinding>(n); 371list = new List<ElementInit>(n);
SqlClient\Query\MethodCallConverter.cs (1)
315List<SqlWhen> whens = new List<SqlWhen>(1);
SqlClient\Query\QueryConverter.cs (3)
809List<SqlWhen> whens = new List<SqlWhen>(1); 1217List<SqlExpression> sqlParams = new List<SqlExpression>(mce.Arguments.Count); 1383List<SqlWhen> whens = new List<SqlWhen>(1);
SqlClient\Query\SqlBinder.cs (1)
751List<SqlWhen> whens = new List<SqlWhen>(sc.Whens.Count);
SqlClient\Query\SqlDuplicator.cs (5)
209gex = new List<SqlExpression>(select.GroupBy.Count); 217lex = new List<SqlOrderExpression>(select.OrderBy.Count); 252List<SqlExpression> args = new List<SqlExpression>(suq.Arguments.Count); 269List<SqlExpression> args = new List<SqlExpression>(spc.Arguments.Count); 298List<SqlAssign> assignments = new List<SqlAssign>(su.Assignments.Count);
SqlClient\Query\SqlExpander.cs (5)
87List<SqlExpression> exprs = new List<SqlExpression>(2); 287List<SqlExpression> hvals = new List<SqlExpression>(exprs.Count); 288List<SqlExpression> vals = new List<SqlExpression>(exprs.Count); 303List<SqlExpression> values = new List<SqlExpression>(exprs.Count); 315List<SqlExpression> foos = new List<SqlExpression>(exprs.Count);
SqlClient\Query\SqlFlattener.cs (1)
174List<SqlExpression> list = new List<SqlExpression>(exprs.Count);
SqlClient\Query\SqlFormatter.cs (1)
26List<string> results = new List<string>(block.Statements.Count);
SqlClient\Query\SqlRetyper.cs (1)
114var newValues = new System.Collections.Generic.List<SqlExpression>(sin.Values.Count);
SqlClient\Query\Translator.cs (1)
514List<SqlExpression> exprs = new List<SqlExpression>(members.Count);
SqlClient\SqlConnectionManager.cs (1)
33this.users = new List<IConnectionUser>(maxUsers);
System.Data.Services (14)
parent\Client\System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (3)
356list = new List<Expression>(n); 439list = new List<MemberBinding>(n); 474list = new List<ElementInit>(n);
System\Data\Services\ExpandSegmentCollection.cs (1)
30public ExpandSegmentCollection(int capacity) : base(capacity)
System\Data\Services\Parsing\FunctionDescription.cs (1)
282List<FunctionDescription> castSignatures = new List<FunctionDescription>(primitiveTypes.Length + 4);
System\Data\Services\Parsing\RequestQueryParser.cs (2)
2185List<FunctionDescription> applicableFunctions = new List<FunctionDescription>(functions.Length); 2186List<Expression[]> applicablePromotedArguments = new List<Expression[]>(functions.Length);
System\Data\Services\Providers\BasicExpandProvider.cs (1)
1033this.projectedProperties = new List<ProjectedProperty>(this.projectedPropertyCandidates.Count);
System\Data\Services\Providers\ExpandedProjectionNode.cs (1)
368this.nodes = new List<ProjectionNode>(existingNodes.Count);
System\Data\Services\RequestQueryProcessor.cs (1)
394this.expandPaths = new List<ExpandSegmentCollection>(this.expandPathsAsText.Count);
System\Data\Services\Serializers\DictionaryContent.cs (3)
56this.valueContents = new List<object>(capacity); 57this.valueTypes = new List<string>(capacity); 58this.valueNames = new List<string>(capacity);
System\Data\Services\Serializers\SyndicationSerializer.cs (1)
772navProperties = new List<ResourcePropertyInfo>(resourceType.Properties.Count);
System.Data.Services.Client (4)
System\Data\Services\Client\ALinq\ALinqExpressionVisitor.cs (3)
356list = new List<Expression>(n); 439list = new List<MemberBinding>(n); 474list = new List<ElementInit>(n);
System\Data\Services\Client\AtomMaterializer.cs (1)
451list = new List<TTarget>(sourceList.Count);
System.Data.Services.Design (1)
System\Data\EntityModel\Emitters\StructuredTypeEmitter.cs (1)
140List<EdmProperty> parameters = new List<EdmProperty>(properties.Count);
System.Data.SqlXml (8)
System\Xml\Xsl\Runtime\StringConcat.cs (1)
89List<string> strList = this.strList = new List<string>(capacity);
System\Xml\Xsl\XmlQueryTypeFactory.cs (1)
788List<XmlQueryType> members = new List<XmlQueryType>(length);
System\Xml\Xsl\Xslt\QilGenerator.cs (2)
185List<EarlyBoundInfo> ebTypes = new List<EarlyBoundInfo>(scriptClasses.Count); 2127args = new List<XslNode>(3);
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (1)
213List<QilNode> convertedPredicates = new List<QilNode>(predicates.Count);
System\Xml\Xsl\Xslt\XPathPatternParser.cs (1)
118List<QilNode> args = new List<QilNode>(2);
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (1)
1270newtemplate.SetContent(new List<XslNode>(content.Count - split + 8));
System\Xml\Xsl\Xslt\XsltLoader.cs (1)
2455List<QilName> modes = new List<QilName>(list.Length);
System.IdentityModel (34)
System\IdentityModel\Asn1IntegerConverter.cs (1)
24List<byte> positiveDecimalDigits = new List<byte>((asn1.Length * 8) / 3);
System\IdentityModel\Claims\ClaimSet.cs (2)
26List<Claim> claims = new List<Claim>(2); 41List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Claims\WindowsClaimSet.cs (1)
154List<Claim> claims = new List<Claim>(3);
System\IdentityModel\Claims\X509CertificateClaimSet.cs (1)
348List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Policy\UnconditionalPolicy.cs (2)
165List<ClaimSet> issuances = new List<ClaimSet>(1); 233identities = new List<IIdentity>(1);
System\IdentityModel\SecurityUtils.cs (4)
97List<SecurityKey> temp = new List<SecurityKey>( 1 ); 604List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1); 738List<ClaimSet> ret = new List<ClaimSet>(claimSets.Count); 784List<IAuthorizationPolicy> ret = new List<IAuthorizationPolicy>(authorizationPolicies.Count);
System\IdentityModel\Selectors\CustomUserNameSecurityTokenAuthenticator.cs (1)
42List<Claim> claims = new List<Claim>(2);
System\IdentityModel\Selectors\RsaSecurityTokenAuthenticator.cs (2)
27List<Claim> claims = new List<Claim>(2); 32List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (1)
34this.supportingAuthenticators = new List<SecurityTokenAuthenticator>(supportingAuthenticators.Count);
System\IdentityModel\Selectors\X509SecurityTokenAuthenticator.cs (2)
118List<ClaimSet> claimSets = new List<ClaimSet>(2); 122List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\IdentityModel\Tokens\KerberosReceiverSecurityToken.cs (2)
74List<SecurityKey> temp = new List<SecurityKey>(1); 205List<SecurityBuffer> list = new List<SecurityBuffer>(2);
System\IdentityModel\Tokens\KerberosRequestorSecurityToken.cs (1)
90List<SecurityKey> temp = new List<SecurityKey>(1);
System\IdentityModel\Tokens\KerberosSecurityTokenHandler.cs (1)
108List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\RsaSecurityToken.cs (1)
172List<SecurityKey> keys = new List<SecurityKey>(1);
System\IdentityModel\Tokens\RsaSecurityTokenHandler.cs (1)
181List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (1)
392List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\SamlAttribute.cs (1)
189List<Claim> tempClaims = new List<Claim>(this.attributeValues.Count);
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (1)
1039List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\SecurityKeyIdentifier.cs (2)
20this.clauses = new List<SecurityKeyIdentifierClause>(InitialSize); 29this.clauses = new List<SecurityKeyIdentifierClause>(clauses.Length);
System\IdentityModel\Tokens\SessionSecurityTokenHandler.cs (1)
608List<ClaimsIdentity> identitites = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\WindowsUserNameSecurityTokenHandler.cs (1)
121List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\Tokens\X509SecurityToken.cs (1)
71List<SecurityKey> temp = new List<SecurityKey>(1);
System\IdentityModel\Tokens\X509SecurityTokenHandler.cs (1)
591List<ClaimsIdentity> identities = new List<ClaimsIdentity>(1);
System\IdentityModel\XmlBuffer.cs (1)
65sections = new List<Section>(1);
TD.Designer.cs (1)
206System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(5);
System.IdentityModel.Selectors (1)
infocard\client\System\IdentityModel\Selectors\InfoCardProofToken.cs (1)
68List<SecurityKey> securityKeys = new List<SecurityKey>(1);
System.Runtime.Caching (2)
System\Caching\HostFileChangeMonitor.cs (1)
148List<string> newList = new List<string>(filePaths.Count);
System\Caching\MemoryCacheEntryChangeMonitor.cs (1)
30_dependencies = new List<MemoryCacheEntry>(_keys.Count);
System.Runtime.DurableInstancing (6)
System\Runtime\DurableInstancing\InstanceHandle.cs (2)
555normals = new List<InstancePersistenceEvent>(this.pendingOwnerEvents.Count); 1064Signaled(new List<InstancePersistenceEvent>(1) { persistenceEvent });
System\Runtime\DurableInstancing\InstanceOwner.cs (3)
287handlesPendingResolution = new List<InstanceHandleReference>(1); 341handlesPendingResolution = new List<InstanceHandleReference>(1); 484handlesPendingResolution = new List<InstanceHandleReference>(1);
System\Runtime\DurableInstancing\InstanceStore.cs (1)
378readyEvents = new List<InstancePersistenceEvent>(1);
System.Runtime.Serialization (3)
System\Runtime\Serialization\ClassDataContract.cs (1)
1440boundClassContract.Members = new List<DataMember>(Members.Count);
System\Runtime\Serialization\EnumDataContract.cs (2)
274List<DataMember> tempMembers = new List<DataMember>(fields.Length); 275List<long> tempValues = new List<long>(fields.Length);
System.ServiceModel (70)
System\ServiceModel\Administration\AppDomainInstanceProvider.cs (1)
87List<IWmiInstance> traceListenerArguments = new List<IWmiInstance>(1);
System\ServiceModel\Administration\ContractInstanceProvider.cs (2)
109List<IWmiInstance> behaviorInstances = new List<IWmiInstance>(behaviors.Count); 124List<IWmiInstance> behaviorInstances = new List<IWmiInstance>(behaviors.Count);
System\ServiceModel\Administration\EndpointInstanceProvider.cs (2)
435List<IWmiInstance> behaviors = new List<IWmiInstance>(info.Behaviors.Count); 561List<string> serviceNames = new List<string>(policy.CustomServiceNames.Count);
System\ServiceModel\Administration\ServiceInstanceProvider.cs (1)
85List<IWmiInstance> behaviors = new List<IWmiInstance>(info.Behaviors.Count);
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (1)
15static ReadOnlyCollection<string> emptyNeededData = new ReadOnlyCollection<string>(new List<string>(0));
System\ServiceModel\Channels\CorrelationMessageProperty.cs (1)
17static readonly ReadOnlyCollection<InstanceKey> emptyInstanceKeyList = new ReadOnlyCollection<InstanceKey>(new List<InstanceKey>(0));
System\ServiceModel\Channels\MessageProperties.cs (1)
806List<KeyValuePair<string, object>> pairs = new List<KeyValuePair<string, object>>(propertyCount);
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (2)
209List<Claim> claims = new List<Claim>(2); 214List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Configuration\ServiceAuthorizationElement.cs (1)
133List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(authorizationPolicies.Count);
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
215List<string> propertiesToRemove = new List<string>(this.Items.Count);
System\ServiceModel\Dispatcher\EndpointDispatcherTable.cs (1)
52this.cachedEndpoints = new List<EndpointDispatcher>(optimizationThreshold);
System\ServiceModel\Dispatcher\QuerySubExprEliminator.cs (1)
24this.children = new List<SubExpr>(2);
System\ServiceModel\Security\AcceleratedTokenAuthenticator.cs (1)
278List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(1);
System\ServiceModel\Security\AcceptorSessionSymmetricMessageSecurityProtocol.cs (1)
119List<SecurityTokenResolver> tmp = new List<SecurityTokenResolver>(1);
System\ServiceModel\Security\MessagePartSpecification.cs (3)
107this.headerTypes = new List<XmlQualifiedName>(headerTypes.Count); 125List<XmlQualifiedName> noDuplicates = new List<XmlQualifiedName>(headerTypes.Count); 175this.headerTypes = new List<XmlQualifiedName>(headerTypes.Length);
System\ServiceModel\Security\MessageSecurityProtocolFactory.cs (1)
199this.wrappedKeyTokenAuthenticator = new List<SecurityTokenAuthenticator>(1);
System\ServiceModel\Security\ReceiveSecurityHeader.cs (1)
819this.supportingTokenTrackers = new List<TokenTracker>(this.supportingTokenAuthenticators.Count);
System\ServiceModel\Security\SecurityContextTokenCache.cs (1)
222List<SecurityContextSecurityToken> tokens = new List<SecurityContextSecurityToken>(cacheTable.Count);
System\ServiceModel\Security\SecurityListenerSettingsLifetimeManager.cs (4)
85List<OperationWithTimeoutBeginCallback> beginOperations = new List<OperationWithTimeoutBeginCallback>(3); 86List<OperationEndCallback> endOperations = new List<OperationEndCallback>(3); 155List<OperationWithTimeoutBeginCallback> beginOperations = new List<OperationWithTimeoutBeginCallback>(3); 156List<OperationEndCallback> endOperations = new List<OperationEndCallback>(3);
System\ServiceModel\Security\SecuritySessionClientSettings.cs (3)
570List<SecurityToken> incomingSessionTokens = new List<SecurityToken>(1); 1173List<SecurityToken> incomingTokens = new List<SecurityToken>(1); 1215List<SecurityToken> incomingTokens = new List<SecurityToken>(2);
System\ServiceModel\Security\SecuritySessionFilter.cs (2)
85contextIds = new List<UniqueId>(1); 299contextIds = new List<UniqueId>(1);
System\ServiceModel\Security\SecuritySessionSecurityTokenAuthenticator.cs (2)
801List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(1); 945List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(1);
System\ServiceModel\Security\SecuritySessionServerSettings.cs (2)
1175this.futureSessionTokens = new List<SecurityContextSecurityToken>(1); 1956List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(1);
System\ServiceModel\Security\SecurityTokenAuthenticatorAdapter.cs (1)
64List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\SecurityUtils.cs (3)
627List<SecurityKey> temp = new List<SecurityKey>(1); 982List<Claim> claims = new List<Claim>(2); 986List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\SimpleSecurityTokenProvider.cs (2)
102List<Claim> claims = new List<Claim>(1); 104List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\SpnegoTokenAuthenticator.cs (1)
139List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\SspiNegotiationTokenAuthenticator.cs (1)
364List<RequestSecurityTokenResponse> rstrList = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\Security\SspiNegotiationTokenProvider.cs (1)
120List<XmlNode> nodesToRemove = new List<XmlNode>(2);
System\ServiceModel\Security\Tokens\DerivedKeySecurityToken.cs (1)
267List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\IssuedSecurityTokenProvider.cs (2)
938List<Claim> claims = new List<Claim>(1); 941List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\Tokens\KerberosRequestorSecurityTokenAuthenticator.cs (1)
31List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (2)
102claimSets = new List<ClaimSet>(1); 139authorizationPolicies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\Tokens\SecurityContextSecurityToken.cs (1)
276List<SecurityKey> temp = new List<SecurityKey>(1);
System\ServiceModel\Security\Tokens\WindowsUserNameCachingSecurityTokenAuthenticator.cs (1)
55List<IExpirableItem> items = new List<IExpirableItem>(cacheTable.Count);
System\ServiceModel\Security\WindowsSspiNegotiation.cs (1)
369List<SecurityBuffer> list = new List<SecurityBuffer>(2);
System\ServiceModel\Security\WrappedRsaSecurityTokenAuthenticator.cs (1)
69List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\WrappedSaml11SecurityTokenAuthenticator.cs (1)
69List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\WrappedSaml2SecurityTokenAuthenticator.cs (1)
80List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\WrappedUserNameSecurityTokenAuthenticator.cs (1)
69List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\WrappedX509SecurityTokenAuthenticator.cs (1)
96List<IAuthorizationPolicy> policies = new List<IAuthorizationPolicy>(1);
System\ServiceModel\Security\WSSecurityOneDotZeroReceiveSecurityHeader.cs (1)
570this.earlyDecryptedDataReferences = new List<string>(4);
System\ServiceModel\Security\WSTrust.cs (2)
190this.entropyAuthenticators = new List<SecurityTokenAuthenticator>(2); 406List<RequestSecurityTokenResponse> rstrCollection = new List<RequestSecurityTokenResponse>(2);
System\ServiceModel\Security\WSTrustServiceContract.cs (1)
159List<SecurityToken> serviceTokens = new List<SecurityToken>(1);
System\ServiceModel\SynchronizedCollection.cs (1)
50this.items = new List<T>(list.Length);
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
50this.items = new List<T>(list.Length);
System\ServiceModel\Syndication\ResourceCollectionInfo.cs (1)
176List<string> tmp = new List<string>(1);
System\ServiceModel\XmlBuffer.cs (1)
66sections = new List<Section>(1);
System\UriTemplateTrieNode.cs (2)
683IList<IList<T>> results = new List<IList<T>>(this.items.Count); 686results.Add(new List<T>(this.items.Values[i].Count));
TD.Designer.cs (1)
4926System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(120);
System.ServiceModel.Activation (2)
System\ServiceModel\Channels\MsmqHostedTransportManager.cs (1)
51List<Uri> baseAddresses = new List<Uri>(this.hosts.Length);
TD.Designer.cs (1)
697System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(14);
System.ServiceModel.Activities (5)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (2)
374rootExecutionProperties = new List<Handle>(1) 400this.PipelineModules = new List<IPersistencePipelineModule>(modulesCount);
System\ServiceModel\Activities\InternalSendMessage.cs (1)
773correlationMessageProperty = new CorrelationMessageProperty(InstanceKey.InvalidKey, new List<InstanceKey>(0), transientCorrelations);
System\ServiceModel\Activities\WorkflowService.cs (1)
218constraintList = new List<Constraint>(1)
TD.Designer.cs (1)
621System.Collections.Generic.List<ushort> e2eEvents = new System.Collections.Generic.List<ushort>(3);
System.ServiceModel.Discovery (1)
System\ServiceModel\Discovery\ServiceDiscoveryBehavior.cs (1)
149List<ServiceEndpoint> appEndpoints = new List<ServiceEndpoint>(serviceDescription.Endpoints.Count);
System.ServiceModel.Internals (2)
System\Runtime\Collections\OrderedDictionary.cs (2)
85List<TKey> keys = new List<TKey>(this.privateDictionary.Count); 104List<TValue> values = new List<TValue>(this.privateDictionary.Count);
System.ServiceModel.Routing (3)
System\ServiceModel\Routing\MessageRpc.cs (2)
207this.operations = new List<SendOperation>(1); 237this.operations = new List<SendOperation>(endpointLists.Count);
System\ServiceModel\Routing\RoutingService.cs (1)
49this.SessionMessages = new List<MessageRpc>(1);
System.Web (9)
Cache\OutputCache.cs (2)
186headerElements = new List<HeaderElement>(count); 197responseElements = new List<ResponseElement>(count);
Compilation\AssemblyBuilder.cs (2)
805List<string> noWarnStrings = new List<string>(5); 816List<string> noWarnStrings = new List<string>(3);
Hosting\CustomRuntimeManager.cs (1)
46List<IProcessResumeCallback> callbacks = new List<IProcessResumeCallback>(suspendListeners.Count);
Hosting\SuspendManager.cs (1)
120_resumeCallbacks = new List<Action>(suspendibleObjects.Count);
HttpApplication.cs (1)
2869moduleList = new List<ModuleConfigurationInfo>(count);
UI\ObjectStateFormatter.cs (1)
1081List<int> items = new List<int>(sparseThreshold);
UI\Page.cs (1)
2971List<string> controlsToClear = new List<string>(controlState.Count);
System.Web.DataVisualization (2)
Common\ChartTypes\BoxPlotChart.cs (1)
1636 List<double> yValues = new List<double>(valueCount);
WebForm\General\ChartHttpHandler.cs (1)
1986static List<HandlerPageTraceInfo> _messages = new List<HandlerPageTraceInfo>(MessageLimit);
System.Web.Entity (3)
System\Data\WebControls\EntityDataSourceWrapperCollection.cs (2)
82List<PropertyDescriptor> visiblePropertyDescriptors = new List<PropertyDescriptor>(columns.Count); 83List<EntityDataSourceWrapperPropertyDescriptor> propertyDescriptors = new List<EntityDataSourceWrapperPropertyDescriptor>(columns.Count);
System\Data\WebControls\OrderByBuilder.cs (1)
237keyMemberNames = new List<string>(entityType.KeyMembers.Count);
System.Web.Extensions (6)
Handlers\ScriptModule.cs (1)
132List<HttpCookie> cookies = new List<HttpCookie>(response.Cookies.Count);
UI\PageRequestManager.cs (2)
499_updatePanelsToRefresh = new List<UpdatePanel>(_allUpdatePanels.Count); 500_childUpdatePanelsToRefresh = new List<UpdatePanel>(_allUpdatePanels.Count);
UI\ScriptManager.cs (1)
1884List<ScriptReferenceBase> filteredScriptList = new List<ScriptReferenceBase>(numScripts);
Util\OrderedDictionary.cs (2)
29_keys = new List<TKey>(capacity); 30_values = new List<TValue>(capacity);
System.Windows.Forms (11)
misc\GDI\WindowsGraphicsCacheManager.cs (1)
86windowsFontCache = new List<KeyValuePair<Font, WindowsFont>>(CacheSize);
winforms\Managed\System\Resources\ResXDataNode.cs (1)
1017List<AssemblyName> assemblyList = new List<AssemblyName>(names.Length);
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
270disposeList = new List<object>(3);
winforms\Managed\System\WinForms\Control.cs (1)
16168List<Rectangle> neighboringControlsRectangles = new List<Rectangle>(4);
winforms\Managed\System\WinForms\KeysConverter.cs (1)
46displayOrder = new List<string>(34);
winforms\Managed\System\WinForms\ListView.cs (3)
507savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 543savedCheckedItems = new List<ListViewItem>(CheckedItems.Count); 4392savedSelectedItems = new List<ListViewItem>(lviArr.Length);
winforms\Managed\System\WinForms\TableLayoutSettings.cs (2)
447List<ControlInformation> controlsInfo = new List<ControlInformation>(Owner.Children.Count); 597List<ControlInformation> listOfControlInfo = new List<ControlInformation>(controlsInfo.Count);
winforms\Managed\System\WinForms\ToolStripItem.cs (1)
3957List<Rectangle> neighbors = new List<Rectangle>(3);
System.Windows.Forms.DataVisualization (1)
Common\ChartTypes\BoxPlotChart.cs (1)
1636 List<double> yValues = new List<double>(valueCount);
System.Workflow.Activities (12)
Rules\Executor.cs (1)
357List<RuleState> orderedRules = new List<RuleState>(rules.Count);
Rules\Parser\Parser.cs (4)
369List<Type> types = new List<Type>(1); 2161List<Type> candidateTypes = new List<Type>(candidateTypeSymbols.Count); 2569List<CandidateConstructor> candidates = new List<CandidateConstructor>(allCtors.Length); 2695List<CandidateConstructor> bestCandidates = new List<CandidateConstructor>(1);
Rules\References.cs (1)
66List<string> symbolList = new List<string>(symbols.Keys.Count);
Rules\RuleValidation.cs (6)
2935candidateTypes = new List<Type>(1); 3081List<CandidateMember> bestCandidates = new List<CandidateMember>(1); 3129List<CandidateMember> candidates = new List<CandidateMember>(methods.Count); 3153List<Argument> arguments = new List<Argument>(argumentExprs.Count); 3194List<Argument> arguments = new List<Argument>(argumentExprs.Count); 3552List<Argument> arguments = new List<Argument>(numArgs);
System.Workflow.ComponentModel (2)
AuthoringOM\Bind.cs (1)
1772private static List<SourceValueInfo> EmptyInfo = new List<SourceValueInfo>(1);
AuthoringOM\Design\Connector.cs (1)
2210List<DistanceFromPoint> extremitiesList = new List<DistanceFromPoint>(4); //at most four points
System.Workflow.Runtime (16)
System\Activities\Statements\Interop.cs (1)
634this.exposedBodyProperties = new List<InteropProperty>(bodyProperties.Length);
Tracking.cs (1)
1666list = new List<T>(capacity);
Tracking\SqlTrackingService.cs (13)
982IList<ActivityTrackingRecord> activities = new List<ActivityTrackingRecord>(5); 1009activities = new List<ActivityTrackingRecord>(5); 1395List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record1.Annotations.Count + (null == record2 ? 0 : record2.Annotations.Count)); 1490IList<ActivityTrackingRecord> activity = new List<ActivityTrackingRecord>(1); 1595List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(10); 1596List<KeyValuePair<long, TrackingDataItem>> items = new List<KeyValuePair<long, TrackingDataItem>>(10); 1714List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(10); 1715List<KeyValuePair<long, TrackingDataItem>> items = new List<KeyValuePair<long, TrackingDataItem>>(10); 1806List<KeyValuePair<long, TrackingDataItem>> batch = new List<KeyValuePair<long, TrackingDataItem>>(_dataItemBatchSize); 1867List<long> ids = new List<long>(_dataItemAnnotationBatchSize); 1876List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(_dataItemAnnotationBatchSize); 1945List<KeyValuePair<long, string>> batch = new List<KeyValuePair<long, string>>(_eventAnnotationBatchSize); 2085List<KeyValuePair<long, string>> annotations = new List<KeyValuePair<long, string>>(record.Annotations.Count);
Tracking\TrackPoint.cs (1)
84status = new List<ActivityExecutionStatus>(9);
System.WorkflowServices (2)
System\ServiceModel\Security\SerializableAuthorizationContext.cs (2)
63List<IAuthorizationPolicy> authorizationPolicies = new List<IAuthorizationPolicy>(1); 180claimSets = new List<ClaimSet>(1);
System.Xml (6)
System\Xml\Core\XmlWriterSettings.cs (1)
848cdataSections = new List<XmlQualifiedName>(length);
System\Xml\Serialization\XmlSchemaImporter.cs (1)
1220if (IsCyclicReferencedType(itemElement, new List<string>(1){identifier}))
System\Xml\Serialization\XmlSerializationWriterILGen.cs (2)
879List<Type> argTypes = new List<Type>(5); 880List<string> argNames = new List<string>(5);
System\Xml\XPath\Internal\ClonableStack.cs (1)
17public ClonableStack(int capacity) : base(capacity) {}
System\Xml\XPath\Internal\QueryBuilder.cs (1)
381List<Query> argList = new List<Query>(numArgs);
WindowsBase (26)
Base\MS\Internal\ComponentModel\APCustomTypeDescriptor.cs (3)
114filteredProps = new List<PropertyDescriptor>(localEnum.Count); 131filteredProps = new List<PropertyDescriptor>(registeredProperties.Length); 268List<DependencyProperty> dpList = new List<DependencyProperty>(currentCnt);
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (1)
672List<Attribute> newAttributes = new List<Attribute>(baseAttributes.Count + 1);
Base\MS\Internal\ComponentModel\DPCustomTypeDescriptor.cs (2)
188newDescriptors = new List<PropertyDescriptor>(cnt); 281List<PropertyDescriptor> newDescriptors = new List<PropertyDescriptor>(baseProps.Count);
Base\MS\Internal\IO\Packaging\InternalRelationshipCollection.cs (1)
245_relationships = new List<PackageRelationship>(4);
Base\MS\Internal\IO\Packaging\PieceDirectory.cs (1)
171_pieceStreamInfoList = new List<PieceStreamInfo>(sortedPieceInfoList.Count);
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (1)
385_memoryStreamList = new List<MemoryStreamBlock>(5);
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
461transforms = new List<String>(1); 495transformStreams = new List<Stream>(transforms.Count);
Base\MS\Internal\Security\RightsManagement\ClientSession.cs (4)
708new List<SafeRightsManagementHandle>(unboundRightsList.Count); 711new List<RightNameExpirationInfoPair>(unboundRightsList.Count); 1616List<RightNameExpirationInfoPair> resultRightsInfoList = new List<RightNameExpirationInfoPair>(10); 1995_cryptoProviderList = new List<CryptoProvider>(5);
Base\MS\Internal\Security\RightsManagement\IssuanceLicense.cs (1)
1067private List<SafeRightsManagementPubHandle> _pubHandlesList = new List<SafeRightsManagementPubHandle>(50); // initial capacity
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (1)
281List<T> newList = new List<T>(n);
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (2)
699return new List<IDataTransform>(0); // return an empty list 703List<IDataTransform> dataTransforms = new List<IDataTransform>(transformsList.Count);
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (1)
637List<Uri> signatures = new List<Uri>(_signatures.Count);
Base\System\IO\Packaging\PackageRelationshipSelector.cs (1)
149List<PackageRelationship> relationships = new List<PackageRelationship>(0);
Base\System\IO\Packaging\ZipPackage.cs (4)
234List<PackagePart> parts = new List<PackagePart>(_initialPartListSize); 1631zipFileInfoNameList = new List<string>(count); 1693_ignoredItemDictionary.Add(normalizedPrefixName, new List<string>(_listInitialSize)); 1708_extensionDictionary.Add(extension, new List<string>(_listInitialSize));
Base\System\Security\RightsManagement\CryptoProvider.cs (1)
309List<ContentGrant> grantList = new List<ContentGrant>(_boundRightsInfoList.Count);
WsatConfig (2)
Configuration\ClusterRegistryConfigurationProvider.cs (1)
228List<string> list = new List<string>(5);
Configuration\MsdtcClusterUtils.cs (1)
261List<string> nodeList = new List<string>(2); // 2 nodes are a typical cluster configuration
WsatUI (2)
Configuration\ClusterRegistryConfigurationProvider.cs (1)
228List<string> list = new List<string>(5);
Configuration\MsdtcClusterUtils.cs (1)
261List<string> nodeList = new List<string>(2); // 2 nodes are a typical cluster configuration
XamlBuildTask (4)
Microsoft\Build\Tasks\Xaml\BuildExtensionContext.cs (1)
14static readonly IList<string> emptyList = new List<string>(0);
Microsoft\Build\Tasks\Xaml\CompilationPass2Task.cs (2)
239IList<string> applicationMarkup = new List<string>(this.ApplicationMarkup.Length); 271sourceCodeFiles = new List<string>(this.SourceCodeFiles.Length);
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTask.cs (1)
350sourceCodeFiles = new List<string>(this.SourceCodeFiles.Length);