160 implementations of Count
mscorlib (16)
system\arraysegment.cs (1)
96public int Count
system\Collections\Concurrent\ConcurrentDictionary.cs (1)
998public int Count
system\collections\generic\dictionary.cs (3)
131public int Count { 836public int Count { 1023public int Count {
system\collections\generic\list.cs (2)
137public int Count { 1051public int Count {
system\collections\objectmodel\collection.cs (1)
38public int Count {
system\collections\objectmodel\readonlycollection.cs (1)
34public int Count {
system\collections\objectmodel\readonlydictionary.cs (3)
119public int Count { 391public int Count { 490public int Count {
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (1)
92public int Count { get { return m_names.Count; } }
system\runtime\interopservices\windowsruntime\dictionarykeycollection.cs (1)
48public int Count {
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (1)
51public int Count {
system\security\principal\ircollection.cs (1)
57public int Count
PresentationCore (41)
Core\CSharp\MS\Internal\FontCache\FontFaceLayoutInfo.cs (1)
825public int Count
Core\CSharp\MS\Internal\FontFace\TypefaceCollection.cs (1)
103public int Count
Core\CSharp\MS\Internal\PartialArray.cs (1)
130public int Count
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
78public int Count
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
69public int Count
Core\CSharp\System\Windows\FreezableCollection.cs (1)
381public int Count
Core\CSharp\system\windows\generated\TextDecorationCollection.cs (1)
278public int Count
Core\CSharp\System\Windows\Media\Animation\Generated\TimelineCollection.cs (1)
286public int Count
Core\CSharp\System\Windows\Media\Animation\TimelineClockCollection.cs (1)
31public int Count
Core\CSharp\System\Windows\Media\CharacterMetricsDictionary.cs (1)
77public int Count
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (1)
81public int Count
Core\CSharp\System\Windows\Media\Effects\Generated\BitmapEffectCollection.cs (1)
285public int Count
Core\CSharp\System\Windows\Media\FamilyMapCollection.cs (1)
153public int Count
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (1)
139public int Count
Core\CSharp\System\Windows\Media\Fonts.cs (1)
366public int Count
Core\CSharp\System\Windows\Media\Generated\DoubleCollection.cs (1)
239public int Count
Core\CSharp\System\Windows\Media\Generated\DrawingCollection.cs (1)
299public int Count
Core\CSharp\System\Windows\Media\Generated\GeneralTransformCollection.cs (1)
287public int Count
Core\CSharp\System\Windows\Media\Generated\GeometryCollection.cs (1)
299public int Count
Core\CSharp\System\Windows\Media\Generated\GradientStopCollection.cs (1)
287public int Count
Core\CSharp\System\Windows\Media\Generated\Int32Collection.cs (1)
239public int Count
Core\CSharp\System\Windows\Media\Generated\PathFigureCollection.cs (1)
288public int Count
Core\CSharp\System\Windows\Media\Generated\PathSegmentCollection.cs (1)
287public int Count
Core\CSharp\System\Windows\Media\Generated\PointCollection.cs (1)
239public int Count
Core\CSharp\System\Windows\Media\Generated\TextEffectCollection.cs (1)
287public int Count
Core\CSharp\System\Windows\Media\Generated\TransformCollection.cs (1)
299public int Count
Core\CSharp\System\Windows\Media\Generated\VectorCollection.cs (1)
239public int Count
Core\CSharp\System\Windows\Media\GlyphRun.cs (2)
2190public int Count 2292public int Count
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (2)
2219public int Count 2308public int Count
Core\CSharp\System\Windows\Media3D\Generated\GeneralTransform3DCollection.cs (1)
283public int Count
Core\CSharp\System\Windows\Media3D\Generated\MaterialCollection.cs (1)
295public int Count
Core\CSharp\System\Windows\Media3D\Generated\Model3DCollection.cs (1)
295public int Count
Core\CSharp\System\Windows\Media3D\Generated\Point3DCollection.cs (1)
235public int Count
Core\CSharp\System\Windows\Media3D\Generated\Transform3DCollection.cs (1)
295public int Count
Core\CSharp\System\Windows\Media3D\Generated\Vector3DCollection.cs (1)
235public int Count
Core\CSharp\System\Windows\Media3D\Visual3DCollection.cs (1)
291public int Count
Shared\MS\Internal\CharacterBuffer.cs (1)
128public abstract int Count
Shared\MS\Internal\PartialList.cs (1)
140public int Count
Shared\MS\Internal\SequentialUshortCollection.cs (1)
75public int Count
PresentationFramework (17)
src\Framework\MS\Internal\Annotations\ObservableDictionary.cs (1)
228public int Count
src\Framework\MS\Internal\Data\RBTree.cs (1)
594public int Count
src\Framework\MS\Internal\Documents\ContentElementCollection.cs (1)
560public int Count
src\Framework\MS\Internal\ListOfObject.cs (1)
74int ICollection<object>.Count
src\Framework\MS\Internal\WeakDictionary.cs (3)
59public int Count 146public int Count 322public int Count
src\Framework\MS\Internal\WeakHashSet.cs (1)
72public int Count
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (1)
196int ICollection<Uri>.Count
src\Framework\System\Windows\Controls\VirtualizedCellInfoCollection.cs (1)
404public int Count
src\Framework\System\Windows\Data\XmlNamespaceMappingCollection.cs (1)
181public int Count
src\Framework\System\Windows\Documents\TableCellCollection.cs (1)
355public int Count
src\Framework\System\Windows\Documents\TableColumnCollection.cs (1)
363public int Count
src\Framework\System\Windows\Documents\TableRowCollection.cs (1)
355public int Count
src\Framework\System\Windows\Documents\TableRowGroupCollection.cs (1)
355public int Count
src\Framework\System\Windows\Documents\TextElementCollection.cs (1)
155public int Count
src\Framework\System\Windows\TriggerActionCollection.cs (1)
50public int Count
System (16)
compmod\system\collections\generic\linkedlist.cs (1)
55public int Count {
compmod\system\collections\generic\sorteddictionary.cs (3)
112public int Count { 526public int Count { 681public int Count {
compmod\system\collections\generic\sortedlist.cs (3)
271public int Count { 927public int Count { 1027public int Count {
compmod\system\collections\generic\sortedset.cs (1)
291public int Count {
compmod\system\collections\specialized\stringdictionary.cs (2)
226public int Count { 417public int Count {
net\System\Net\HttpListenerPrefixCollection.cs (1)
78public int Count {
net\System\Net\NetworkInformation\GatewayIPAddressInformationCollection.cs (1)
19public virtual int Count {
net\System\Net\NetworkInformation\IPAddressCollection.cs (1)
19public virtual int Count {
net\System\Net\NetworkInformation\IPAddressInformationCollection.cs (1)
19public virtual int Count {
net\System\Net\NetworkInformation\MulticastIPAddressInformationCollection.cs (1)
19public virtual int Count {
net\System\Net\NetworkInformation\UnicastIPAddressInformationCollection.cs (1)
21public virtual int Count {
System.Activities (2)
System\Activities\Hosting\SymbolResolver.cs (1)
23public int Count
System\Activities\HybridDictionary.cs (1)
20public int Count
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemCollection.cs (1)
54public abstract int Count { get; }
System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (1)
71public abstract int Count { get; }
System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
69public int Count
System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategoryItems.cs (1)
79public int Count
System.AddIn (2)
System\Addin\Hosting\ReadOnlyDictionary.cs (1)
108public Int32 Count
System\Addin\Pipeline\ContractListAdapter.cs (1)
121public int Count
System.Core (10)
Microsoft\Scripting\Actions\ExpandoObject.cs (3)
368public int Count { 494public int Count { 592int ICollection<KeyValuePair<string, object>>.Count {
Microsoft\Scripting\Ast\BlockExpression.cs (1)
570public int Count {
Microsoft\Scripting\Ast\ListArgumentProvider.cs (1)
105public int Count {
Microsoft\Scripting\Compiler\Set.cs (1)
74public int Count {
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (1)
119public int Count {
System\Collections\Generic\HashSet.cs (1)
326public int Count {
System\Linq\Enumerable.cs (1)
2327int ICollection<TElement>.Count {
System\Linq\Parallel\QueryOperators\QueryResults.cs (1)
135public int Count
System.Data (5)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemCollection.cs (1)
54public abstract int Count { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Interaction\Model\ModelItemDictionary.cs (1)
71public abstract int Count { get; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\WeakKeyDictionary.cs (1)
69public int Count
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Toolbox\ToolboxCategoryItems.cs (1)
79public int Count
fx\src\data\System\Data\Common\DbConnectionStringCommon.cs (1)
200public int Count {
System.Data.Entity (5)
System\Data\Common\Utils\ThreadSafeList.cs (1)
26public int Count
System\Data\EntityModel\SchemaObjectModel\RelationshipEndCollection.cs (1)
37public int Count
System\Data\Metadata\Edm\MetadataCollection.cs (1)
129public virtual int Count
System\Data\Objects\DataClasses\EntityCollection.cs (1)
116public int Count
System\Data\Objects\ObjectParameterCollection.cs (1)
95public int Count
System.Data.Linq (2)
ChangeConflicts.cs (1)
25public int Count {
Types.cs (1)
184public int Count {
System.Data.SqlXml (3)
System\Xml\Xsl\ListBase.cs (1)
25public abstract int Count { get; }
System\Xml\Xsl\QIL\QilNode.cs (1)
108public virtual int Count {
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (1)
129public int Count {
System.IO.Log (1)
System\IO\Log\ReservationCollection.cs (1)
35public int Count
System.Runtime.DurableInstancing (1)
System\Runtime\PersistencePipeline.cs (1)
294public int Count
System.ServiceModel (16)
System\ServiceModel\Channels\ContextDictionary.cs (1)
62public int Count
System\ServiceModel\Channels\MessageProperties.cs (1)
88public int Count
System\ServiceModel\Configuration\ServiceModelExtensionCollectionElement.cs (1)
76public int Count
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (1)
52public int Count
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (1)
45public int Count
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (1)
99public int Count
System\ServiceModel\Dispatcher\MessageFilter.cs (1)
64public int Count
System\ServiceModel\Dispatcher\MessageFilterTable.cs (1)
70public int Count
System\ServiceModel\Dispatcher\MessageQueryTable.cs (1)
26public int Count
System\ServiceModel\Dispatcher\ThreadSafeMessageFilterTable.cs (1)
59public int Count
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (1)
81public int Count
System\ServiceModel\Security\SecuritySessionFilter.cs (1)
191public int Count
System\ServiceModel\ServiceChannelManager.cs (1)
425public int Count
System\ServiceModel\SynchronizedCollection.cs (1)
57public int Count
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
72public int Count
System\UriTemplate.cs (1)
1035public int Count
System.ServiceModel.Activities (1)
System\ServiceModel\Activities\WorkflowDefinitionProvider.cs (1)
203public int Count
System.ServiceModel.Internals (5)
System\Runtime\Collections\NullableKeyDictionary.cs (3)
25public int Count 230public int Count 305public int Count
System\Runtime\Collections\OrderedDictionary.cs (1)
36public int Count
System\Runtime\ReadOnlyDictionaryInternal.cs (1)
22public int Count
System.ServiceModel.Routing (1)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (1)
62public int Count
System.Web (4)
ModelBinding\ModelBinderDictionary.cs (1)
21public int Count {
ModelBinding\ModelStateDictionary.cs (1)
25public int Count {
Routing\RouteValueDictionary.cs (1)
26public int Count {
UI\WebControls\MethodParametersDictionary.cs (1)
42public int Count {
System.Web.Extensions (1)
Util\OrderedDictionary.cs (1)
33public int Count {
System.Windows.Forms (1)
winforms\Managed\System\WinForms\NumericUpDownAccelerationCollection.cs (1)
79public int Count
System.Workflow.ComponentModel (2)
AuthoringOM\ActivitiesCollection.cs (1)
158int ICollection<Activity>.Count
AuthoringOM\ItemList.cs (1)
222int ICollection<T>.Count
System.WorkflowServices (2)
System\ServiceModel\SerializableReadOnlyDictionary.cs (1)
54public int Count
System\Workflow\Activities\OperationParameterInfoCollection.cs (1)
48int ICollection<OperationParameterInfo>.Count
WindowsBase (2)
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (1)
47public int Count {
Base\System\Windows\NameScope.cs (1)
219public int Count
1792 references to Count
ComSvcConfig (7)
Options.cs (1)
324if (argValues.Count == 1 && argValues[0] == "*")
Tool.cs (6)
185if (guidComponents.Count == 0) 566if (guidComponents.Count == 0) 797if (outComps.Count == 0 && (!String.IsNullOrEmpty(missingInterface))) 1006if (!options.AllComponents && ((options.Components == null) || options.Components.Count == 0)) 1047if (!options.AllComponents && ((options.Components == null) || options.Components.Count == 0)) 1085if (options.AllComponents || ((options.Components != null) && options.Components.Count > 0))
mscorlib (82)
microsoft\win32\registrykey.cs (1)
1378data = new String[strings.Count];
system\AggregateException.cs (5)
150: base(message, innerExceptions != null && innerExceptions.Count > 0 ? innerExceptions[0] : null) 160Exception[] exceptionsCopy = new Exception[innerExceptions.Count]; 227: base(message, innerExceptionInfos != null && innerExceptionInfos.Count > 0 && innerExceptionInfos[0] != null ? 238Exception[] exceptionsCopy = new Exception[innerExceptionInfos.Count]; 410for (int i = 0; i < currentInnerExceptions.Count; i++)
system\collections\concurrent\OrderablePartitioner.cs (1)
176if (orderablePartitions.Count != partitionCount)
system\collections\concurrent\PartitionerStatic.cs (3)
1261get { return m_sharedReader.Count; } 1552get { return m_list.Count; } 1573Contract.Assert(startIndex >= 0 && endIndex <= list.Count - 1);
system\collections\generic\debugview.cs (4)
42T[] items = new T[collection.Count]; 62TKey[] items = new TKey[collection.Count]; 82TValue[] items = new TValue[collection.Count]; 102KeyValuePair<K, V>[] items = new KeyValuePair<K, V>[dict.Count];
system\collections\generic\dictionary.cs (1)
107this(dictionary != null? dictionary.Count: 0, comparer) {
system\collections\generic\list.cs (2)
81int count = c.Count; 713int count = c.Count;
system\collections\objectmodel\collection.cs (6)
39get { return items.Count; } 53if (index < 0 || index >= items.Count) { 66int index = items.Count; 99if (index < 0 || index > items.Count) { 122if (index < 0 || index >= items.Count) { 221int count = items.Count;
system\collections\objectmodel\keyedcollection.cs (1)
121for (int i = 0; i < Items.Count; i++) {
system\collections\objectmodel\readonlycollection.cs (2)
35get { return list.Count; } 166int count = list.Count;
system\collections\objectmodel\readonlydictionary.cs (4)
120get { return m_dictionary.Count; } 392get { return m_collection.Count; } 491get { return m_collection.Count; } 576if (array.Length - index < collection.Count) {
system\diagnostics\eventing\eventsource.cs (6)
2700if (commandArgs.listener == null && commandArgs.Arguments.Count > 0 && commandArgs.perEventSourceSessionId != sessionIdBit) 3168Contract.Assert(data.ConstructorArguments.Count <= 1); 3170if (data.ConstructorArguments.Count == 1) 3174else if (data.ConstructorArguments.Count == 0) 3557if ((flags & EventManifestOptions.Strict) != 0 && (manifest.Errors.Count > 0 || exception != null)) 3560if (manifest.Errors.Count > 0)
System\Diagnostics\Eventing\TraceLogging\EventPayload.cs (1)
98for (int i = 0; i < Keys.Count; i++)
system\reflection\customattribute.cs (10)
81CustomAttributeData[] pca = new CustomAttributeData[cad.Count + pcaCount]; 104CustomAttributeData[] pca = new CustomAttributeData[cad.Count + pcaCount]; 127CustomAttributeData[] pca = new CustomAttributeData[cad.Count + pcaCount]; 185CustomAttributeData[] pca = new CustomAttributeData[cad.Count + pcaCount]; 208CustomAttributeData[] pca = new CustomAttributeData[cad.Count + pcaCount]; 342for (int i = 0; i < attrs.Count; i++) 505for (int i = 0; i < ConstructorArguments.Count; i ++) 509for (int i = 0; i < NamedArguments.Count; i ++) 939result = String.Format(CultureInfo.CurrentCulture, @"new {0}[{1}] {{ ", elementType.IsEnum ? elementType.FullName : elementType.Name, array.Count); 941for (int i = 0; i < array.Count; i++)
system\rttype.cs (2)
1047for (int i = 0; i < types.Count; i ++) 1790for (int i = 0; i < attrs.Count; i++)
system\runtime\compilerservices\datetimeconstantattribute.cs (1)
32Contract.Requires(attr.ConstructorArguments.Count == 1);
system\runtime\compilerservices\decimalconstantattribute.cs (1)
70Contract.Assert(args.Count == 5);
system\runtime\interopservices\marshal.cs (2)
2356for (int i = 0; i < cas.Count; i ++) 2362Contract.Assert(caConstructorArgs.Count == 1, "caConstructorArgs.Count == 1");
system\runtime\interopservices\windowsruntime\dictionarykeycollection.cs (2)
38if (array.Length - index < dictionary.Count) 49get { return dictionary.Count; }
system\runtime\interopservices\windowsruntime\dictionarytomapadapter.cs (1)
60return (uint)_this.Count;
system\runtime\interopservices\windowsruntime\dictionaryvaluecollection.cs (2)
41if (array.Length - index < dictionary.Count) 52get { return dictionary.Count; }
system\runtime\interopservices\windowsruntime\listtovectoradapter.cs (10)
42EnsureIndexInt32(index, _this.Count); 59return (uint)_this.Count; 101EnsureIndexInt32(index, _this.Count); 121EnsureIndexInt32(index, _this.Count + 1); 140EnsureIndexInt32(index, _this.Count); 167if (_this.Count == 0) 174uint size = (uint)_this.Count; 228if (startIndex == sourceList.Count) 233EnsureIndexInt32(startIndex, sourceList.Count); 240uint itemCount = Math.Min((uint)items.Length, (uint)sourceList.Count - startIndex);
system\runtime\interopservices\windowsruntime\windowsruntimemarshal.cs (1)
114count += ManagedEventRegistrationImpl.s_eventRegistrations.Keys.Count;
system\security\claims\Claim.cs (2)
557if (Properties.Count > 0) 596writer.Write(Properties.Count);
system\security\policy\applicationtrust.cs (1)
211if (m_fullTrustAssemblies.Count > 0) {
system\threading\Tasks\Parallel.cs (5)
23540, list.Count, parallelOptions, (i) => body(list[i]), null, null, null, null); 23590, list.Count, parallelOptions, null, (i, state) => bodyWithState(list[i], state), null, null, null); 23640, list.Count, parallelOptions, null, (i, state) => bodyWithStateAndIndex(list[i], state, i), null, null, null); 23690, list.Count, parallelOptions, null, null, (i, state, local) => bodyWithStateAndLocal(list[i], state, local), localInit, localFinally); 23740, list.Count, parallelOptions, null, null, (i, state, local) => bodyWithEverything(list[i], state, i, local), localInit, localFinally);
system\threading\Tasks\Task.cs (2)
5997taskArray = new Task[taskCollection.Count]; 6246taskArray = new Task<TResult>[taskCollection.Count];
system\threading\Tasks\TaskFactory.cs (2)
2458int numTasks = tasks.Count; 2485int numTasks = tasks.Count;
system\threading\Tasks\TaskScheduler.cs (1)
591var arr = new TaskScheduler[schedulers.Count];
PresentationBuildTasks (11)
Core\CSharp\MS\internal\Media\ParserStreamGeometryContext.cs (2)
678_bw.Write(points.Count); 681for(int i = 0; i < points.Count; i++)
Framework\System\Windows\Markup\XamlReaderHelper.cs (1)
4891for( int i = 0; i < attributes.Count; i++ )
Framework\System\Windows\Markup\XmlnsCache.cs (3)
234for(int i=0; i<allAttributes.Count; i++) 255for (int i = 0; i<constructorArguments.Count; i++) 275for (int i=0; i<constructorArguments.Count; i++)
Shared\System\Windows\Markup\ReflectionHelper.cs (5)
227for (int j = 0; j < list.Count; j++) 260for (int j = 0; j < list.Count && !attributeDataFound; j++) 304if (constructorArguments.Count == 1 && !noArgs) 319else if (constructorArguments.Count == 0) 461for (int j = 0; j < list.Count; j++)
PresentationCore (148)
Core\CSharp\MS\Internal\FontCache\FamilyCollection.cs (1)
863return _fontCollection.FamilyCount + (UseSystemFonts ? SystemCompositeFonts.NumOfSystemCompositeFonts : checked((uint)UserCompositeFonts.Count));
Core\CSharp\MS\Internal\FontCache\FontSourceCollection.cs (1)
251fontSources = new List<Text.TextInterface.IFontSource>(files.Count);
Core\CSharp\MS\Internal\FontFace\FontDriver.cs (2)
293if (glyphs == null || glyphs.Count == 0) 297glyphArray = new ushort[glyphs.Count];
Core\CSharp\MS\Internal\IListConverters.cs (9)
129StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 130for (int i = 0; i < list.Count; i++) 170StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 171for (int i = 0; i < list.Count; i++) 211StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 212for (int i = 0; i < list.Count; i++) 253StringBuilder builder = new StringBuilder(EstimatedCharCountPerItem * list.Count); 254for (int i = 0; i < list.Count; i++) 293char[] chars = new char[list.Count];
Core\CSharp\MS\Internal\Ink\GestureRecognizer\NativeRecognizer.cs (1)
268count = (uint)collection.Count;
Core\CSharp\MS\Internal\Media\ParserStreamGeometrycontext.cs (2)
678_bw.Write(points.Count); 681for(int i = 0; i < points.Count; i++)
Core\CSharp\MS\Internal\Shaping\TypefaceMap.cs (3)
460for(i = 0; i < _cachedScaledTypefaces.Count; i++) 466if(i == _cachedScaledTypefaces.Count) 469i = _cachedScaledTypefaces.Count;
Core\CSharp\MS\Internal\TextFormatting\Bidi.cs (2)
1783Invariant.Assert(levels != null && levels.Count >= cchText); 1784Invariant.Assert(characterClass != null && characterClass.Count >= cchText);
Core\CSharp\MS\Internal\TextFormatting\FormattedTextSymbols.cs (3)
89Debug.Assert(shapeables != null && shapeables.Count > 0); 92_glyphs = new Glyphs[shapeables.Count]; 100while (i < shapeables.Count)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (1)
2091return boundsList.Count > 0 ? boundsList : null;
Core\CSharp\MS\Internal\TextFormatting\FullTextState.cs (4)
206int lsTbdCount = pap.Tabs != null ? pap.Tabs.Count : 0; 211if (pap.Tabs != null && pap.Tabs.Count > 0) 213lsTbdCount = pap.Tabs.Count + 1; 231if (pap.Tabs != null && pap.Tabs.Count > 0)
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (1)
282for (int i = 0; i < _textEffects.Count; i++)
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
897(boundsList == null || boundsList.Count == 0 ? null : boundsList) 943for (int i = 0; i < displayGlyphAdvances.Count; i++) 1791for (int i = 0; i < displayGlyphAdvances.Count; i++)
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
65InitArrays(realValues.Count);
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealPoints.cs (1)
55InitArrays(emSize, pointValues.Count);
Core\CSharp\System\Windows\FreezableCollection.cs (1)
711return enumerableAsICollectionT.Count;
Core\CSharp\System\Windows\Ink\Stroke.cs (1)
1188return icol.Count;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (3)
408int numManipulators = manipulators.Count; 435int count = parameters.Count; 436for (int i = 0; i < parameters.Count; i++)
Core\CSharp\System\Windows\Media\Animation\AnimationLayer.cs (10)
31|| (newAnimationClocks.Count > 0 107int count = _animationClocks.Count; 121Debug.Assert(animationClocks.Count > 0); 127int count = animationClocks.Count; 148&& _animationClocks.Count > 0, 171if (_animationClocks.Count == 0) 188Debug.Assert(newAnimationClocks.Count > 0); 192int newClocksCount = newAnimationClocks.Count; 198int oldClocksCount = (_animationClocks == null) ? 0 : _animationClocks.Count; 261int count = _animationClocks.Count;
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (5)
598Debug.Assert(animationClocks.Count > 0, 653storage._animationClocks = new FrugalObjectList<AnimationClock>(animationClocks.Count); 655for (int i = 0; i < animationClocks.Count; i++) 669FrugalObjectList<AnimationClock> newClockCollection = new FrugalObjectList<AnimationClock>(storage._animationClocks.Count + animationClocks.Count); 678for (int i = 0; i < animationClocks.Count; i++)
Core\CSharp\System\Windows\Media\ByteStreamGeometryContext.cs (1)
728int count = points.Count;
Core\CSharp\System\Windows\Media\CultureSpecificStringDictionary.cs (4)
83get { return _innerDictionary.Count; } 135if (_innerDictionary.Count > array.Length - index) 171if (_innerDictionary.Count > array.Length - index) 464get { return _innerDictionary.Count; }
Core\CSharp\System\Windows\Media\FamilyTypefaceCollection.cs (1)
52_count = innerList.Count;
Core\CSharp\System\Windows\Media\GlyphRun.cs (59)
367(glyphIndices.Count > 0) && 368(glyphIndices.Count <= MaxGlyphCount) && 369(advanceWidths.Count == glyphIndices.Count) && 370((glyphOffsets == null) || ((glyphOffsets != null) && (glyphOffsets.Count != 0) && (glyphOffsets.Count == glyphIndices.Count)))) 390if (characters != null && characters.Count != 0) 392if (clusterMap != null && clusterMap.Count != 0) 394if (clusterMap.Count == characters.Count) 401int mapCount = clusterMap.Count; 428throw new ArgumentException(SR.Get(SRID.CollectionNumberOfElementsShouldBeEqualTo, characters.Count), "clusterMap"); 433if (GlyphCount != characters.Count) 438if (caretStops != null && caretStops.Count != 0) 440if (caretStops.Count != CodepointCount + 1) 469if (glyphIndices.Count <= 0) 472if (glyphIndices.Count > MaxGlyphCount) 480if (advanceWidths.Count != glyphIndices.Count) 481throw new ArgumentException(SR.Get(SRID.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "advanceWidths"); 483if (glyphOffsets != null && glyphOffsets.Count != 0 && glyphOffsets.Count != glyphIndices.Count) 484throw new ArgumentException(SR.Get(SRID.CollectionNumberOfElementsShouldBeEqualTo, glyphIndices.Count), "glyphOffsets"); 518IList<bool> caretStops = CaretStops != null && CaretStops.Count != 0 ? CaretStops : new DefaultCaretStopList(CodepointCount); 558if (currentCodepoint >= clusterMap.Count || clusterMap[currentCodepoint] != clusterMap[clusterCodepointStart]) 566if (currentCodepoint >= clusterMap.Count) 567clusterGlyphEnd = advances.Count; 574if (caretCodePoint < currentCodepoint || currentCodepoint >= clusterMap.Count) 610IList<bool> caretStops = CaretStops != null && CaretStops.Count != 0 ? CaretStops : new DefaultCaretStopList(CodepointCount); 630for (int i = 1; i < caretStops.Count; ++i) 632if (i < clusterMap.Count && clusterMap[i] == clusterMap[currentClusterStart]) 638ushort lastGlyphInCluster = i < clusterMap.Count ? clusterMap[i] : (ushort)advances.Count; 677if (caretStops[caretStops.Count - 1]) 680secondStopIndex = caretStops.Count - 1; 693if (caretStops[caretStops.Count - 1]) 694return new CharacterHit(caretStops.Count - 1, 0); 716return new CharacterHit(firstStopIndex, caretStops.Count - 1 - firstStopIndex); 744IList<bool> caretStops = CaretStops != null && CaretStops.Count != 0 ? CaretStops : new DefaultCaretStopList(CodepointCount); 791IList<bool> caretStops = CaretStops != null && CaretStops.Count != 0 ? CaretStops : new DefaultCaretStopList(CodepointCount); 1037if (CaretStops == null || CaretStops.Count == 0) 1125if (value.Count <= 0) 1156if (value.Count <= 0) 1233if (_glyphOffsets == null || _glyphOffsets.Count == 0) 1242return _glyphIndices.Count; 1251if (_characters != null && _characters.Count != 0) 1252return _characters.Count; 1253if (_clusterMap != null && _clusterMap.Count != 0) 1254return _clusterMap.Count; 1255return _glyphIndices.Count; 1278int glyphIndicesCount = _glyphIndices.Count; 1944if (_glyphOffsets != null && _glyphOffsets.Count != 0) 2008if (_glyphOffsets != null && _glyphOffsets.Count != 0) 2053if (_glyphOffsets != null && _glyphOffsets.Count != 0) 2079if (characterIndex < 0 || characterIndex >= caretStops.Count) 2096for (int i = characterIndex + 1; i < caretStops.Count; ++i) 2112for (int lastStop = caretStopIndex + 1; lastStop < caretStops.Count; ++lastStop)
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (14)
76(_characters == null ? 0 : _characters.Count), 77_indices.Count 96for (characterIndex = 0; characterIndex < _clusters.Count; ++characterIndex) 120Debug.Assert(_indices.Count > glyphClusterStart - _glyphClusterInitialOffset); 121AddCluster(glyphClusterStart - _glyphClusterInitialOffset, _indices.Count, charClusterStart, characterIndex); 126Debug.Assert(_characters == null || _characters.Count == 0 || _indices.Count == _characters.Count); 127for (int i = 0; i < _indices.Count; ++i) 135if (_characters == null || _characters.Count == 0) 141StringBuilder builder = new StringBuilder(_characters.Count); 249if (_characters != null && _characters.Count != 0) 270for (int i = _caretStops.Count - 1; i >= 0; --i) 277lastCaretStop = Math.Min(i | 3, _caretStops.Count - 1);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (3)
294if (glyphs.Count <= 0) 297if (glyphs.Count > ushort.MaxValue) 518IDictionary<XmlLanguage, string> adjustedLanguageFaceNames = new Dictionary<XmlLanguage, string>(adjustedFaceNames.Count);
Core\CSharp\System\Windows\Media\Imaging\BitmapEncoder.cs (4)
400int count = _frames.Count; 442if (_palette != null && _palette.Colors.Count > 0) 735if (colorContexts != null && colorContexts.Count > 0) 737int count = colorContexts.Count;
Core\CSharp\System\Windows\Media\Imaging\BitmapPalette.cs (2)
56int count = colors.Count; 321int numColors = Math.Min(256, _colors.Count);
Core\CSharp\System\Windows\Media\Imaging\FormatConvertedBitmap.cs (1)
221else if ((1 << DestinationFormat.BitsPerPixel) < DestinationPalette.Colors.Count)
Core\CSharp\System\Windows\Media\PathStreamGeometryContext.cs (1)
332int count = points.Count;
Core\CSharp\System\Windows\ReverseInheritProperty.cs (1)
71int otherCount = (otherOrigins != null) ? otherOrigins.Count : 0;
Shared\MS\Internal\PartialList.cs (2)
40_count = list.Count; 46Debug.Assert(initialIndex >= 0 && initialIndex + count <= list.Count);
PresentationFramework (129)
src\Framework\Microsoft\Win32\FileDialog.cs (1)
2073if (places != null && places.Count != 0)
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (6)
123int firstPage = pageEl.Count; 131if (pageEl.Count > 0 && ((FixedPageProxy)pageEl[pageEl.Count - 1]).Page == startPage) 215if (fp.Segments.Count == 0) 222part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo)); 224for (int i = 0; i < fp.Segments.Count; i++)
src\Framework\MS\Internal\Annotations\Anchoring\LocatorManager.cs (13)
304if(locators.Count > 0) 322ContentLocator[] lists = new ContentLocator[locators.Count]; 716if (newLocators != null && newLocators.Count > 0) 764if (locatorParts != null && locatorParts.Count > 0) 766List<ContentLocatorBase> tempLocators = new List<ContentLocatorBase>(locatorsToReturn.Count * locatorParts.Count); 809if (tempLocators != null && tempLocators.Count > 0) 990if (locators.Count > 0) 998if (locators.Count == 1) 1006if (locators.Count > 2) 1010for (int i = 1; i < locators.Count - 1; i++) 1030data = ResolveSingleLocator(ref selection, ref attachmentLevel, AttachmentLevel.EndPortion, locators[locators.Count - 1], offset, startNode, skipStartNode); 1255if (additionalLocators == null || additionalLocators.Count == 0) 1263for (int i = 1; i < additionalLocators.Count; i++)
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (2)
175for(int i = 0; i < textSegments.Count; i++) 182part.NameValuePairs.Add(CountAttribute, textSegments.Count.ToString(NumberFormatInfo.InvariantInfo));
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (2)
249if (segments != null && segments.Count > 0) 252ITextPointer end = segments[segments.Count - 1].End;
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (9)
386ind = ind + res.Count - 1; 644_owners = new List<IHighlightRange>(owners.Count); 660Debug.Assert(owners.Count > 0, "empty owners list"); 661for (int i = 0; i < owners.Count; i++) 846for (int i = 0; i < r1.Count; i++) 851for (int j = 0; j < r2.Count; j++) 871if ((res != null) && (res.Count > 0) && (newOwner != null)) 874if (res.Count == 3) 889Debug.Assert(res.Count == 2, "unexpected resulting segment count after split");
src\Framework\MS\Internal\Annotations\TextAnchor.cs (1)
604List<TextSegment> orderedList = new List<TextSegment>(textSegments.Count);
src\Framework\MS\Internal\Data\DifferencingCollection.cs (1)
55int n = list.Count;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (5)
276Invariant.Assert(textBounds.Count > 0); 278for (int boundIndex = 0; boundIndex < textBounds.Count; boundIndex++) 387return (((TextSpan<TextRun>)runs[runs.Count-1]).Value is TextEndOfParagraph); 513Invariant.Assert(textBounds != null && textBounds.Count == 1, "Expecting exactly one TextBounds for a single text position."); 518Invariant.Assert(runBounds.Count == 1, "Expecting exactly one TextRunBounds for a single text position.");
src\Framework\MS\Internal\Documents\TextBoxView.cs (2)
2090for (int i = 0; i < bounds.Count; i++) 2169for (int i = 0; i < bounds.Count; i++)
src\Framework\MS\Internal\Globalization\BamlTreeUpdater.cs (3)
292Hashtable uidSubstitutions = new Hashtable(newChildren.Count); 353while (nodeIndex < newChildren.Count) 390for (; nodeIndex < newChildren.Count; nodeIndex++)
src\Framework\MS\Internal\Ink\InkCanvasSelection.cs (3)
581if ( elements.Count > 0 ) 1054if ( elements1.Count != elements2.Count )
src\Framework\MS\Internal\PtsHost\Line.cs (10)
529Invariant.Assert(textBounds.Count > 0); 531for (int boundIndex = 0; boundIndex < textBounds.Count; boundIndex++) 655Invariant.Assert(collapsedRanges.Count == 1, "Multiple collapsed ranges are not supported."); 719cchGlyphRuns -= (glyphRun.Characters == null ? 0 : glyphRun.Characters.Count); 734int characterCount = (run.Characters == null ? 0 : run.Characters.Count); 874return (((TextSpan<TextRun>)_runs[_runs.Count-1]).Value is ParagraphBreakRun); 950TextRun run = ((TextSpan<TextRun>)_runs[_runs.Count - 1]).Value as TextRun; 1023Invariant.Assert(textBounds != null && textBounds.Count == 1, "Expecting exactly one TextBounds for a single text position."); 1027Debug.Assert(runBounds.Count == 1, "Expecting exactly one TextRunBounds for a single text position."); 1100cchGlyphRuns += (glyphRun.Characters == null ? 0 : glyphRun.Characters.Count);
src\Framework\MS\Internal\PtsHost\PtsHost.cs (2)
1599for(int breakIndex = 0; breakIndex < Math.Min(textBreakpoints.Count, nLineVariantsAlloc); breakIndex++) 1648nLineVariantsActual = textBreakpoints.Count;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
2118for (int i = 0, count = rectangles.Count; i < count; ++i) 2235for (int i = 0, count = rectangles.Count; i < count; ++i)
src\Framework\MS\Internal\Text\Line.cs (6)
187Invariant.Assert(textBounds.Count > 0); 190for (int boundIndex = 0; boundIndex < textBounds.Count; boundIndex++) 323Debug.Assert(collapsedRanges.Count == 1, "Multiple collapsed ranges are not supported."); 429return (((TextSpan<TextRun>)runs[runs.Count-1]).Value is TextEndOfParagraph); 481Invariant.Assert(textBounds != null && textBounds.Count == 1, "Expecting exactly one TextBounds for a single text position."); 486Debug.Assert(runBounds.Count == 1, "Expecting exactly one TextRunBounds for a single text position.");
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (2)
381if (locators.Count > 0) 384ContentLocator[] lists = new ContentLocator[locators.Count];
src\Framework\System\Windows\Annotations\AnnotationHelper.cs (7)
265if (attachedAnnotations.Count > 0) 646Debug.Assert((textSegments != null) && (textSegments.Count > 0), "Invalid selection TextSegments"); 648if ((attachedAnnotations != null) && (attachedAnnotations.Count > 0)) 656for (int i = attachedAnnotations.Count - 1; i >= 0; i--) 700Invariant.Assert(locators != null && locators.Count > 0); 798List<IAttachedAnnotation> attachedAnnotations = new List<IAttachedAnnotation>(annotations.Count); 1080Invariant.Assert(locators != null && locators.Count > 0, "No locators generated for selection.");
src\Framework\System\Windows\Annotations\AnnotationService.cs (7)
915List<AttachedAnnotationChangedEventArgs> eventsToFire = new List<AttachedAnnotationChangedEventArgs>(attachedAnnotations.Count); 1063if ((attachedAnnotations != null) && (attachedAnnotations.Count > 0)) 1370if (annotations.Count > 0) 1373IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1433if (annotations.Count > 0) 1436IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count]; 1473IAttachedAnnotation[] list = new IAttachedAnnotation[annotations.Count];
src\Framework\System\Windows\Annotations\LocatorPart.cs (1)
112if (part.NameValuePairs.Count != _nameValues.Count)
src\Framework\System\Windows\Annotations\LocatorPartList.cs (3)
391if (additionalLocatorParts == null || additionalLocatorParts.Count == 0) 398results = new List<ContentLocatorBase>(additionalLocatorParts.Count); 400for (int i = 1; i < additionalLocatorParts.Count; i++)
src\Framework\System\Windows\Automation\Peers\DataGridAutomationPeer.cs (4)
333this.OwningDataGrid.SelectedCells.Count == 1 && e.AddedCells.Count == 1) 346for (i = 0; i < e.AddedCells.Count; i++) 358for (i = 0; i < e.RemovedCells.Count; i++)
src\Framework\System\Windows\Automation\Peers\DataGridCellItemAutomationPeer.cs (1)
684this.OwningDataGrid.SelectedCells.Count > 0)
src\Framework\System\Windows\Automation\Peers\DataGridItemAutomationPeer.cs (4)
151if (columns != null && columns.Count > 0) 172if (startIndex == 0 || startIndex == columns.Count) 176if (propertyId == 0 && startIndex < columns.Count) 183for (int i = startIndex; i < columns.Count; i++)
src\Framework\System\Windows\Controls\CustomDictionarySources.cs (1)
306get { return ((IList<Uri>)this).Count; }
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2426if (aryTextBounds.Count > 0) 2429int c = aryTextBounds.Count;
src\Framework\System\Windows\Controls\Validation.cs (1)
401for (int groupIndex = 0; groupIndex < groups.Count; ++groupIndex)
src\Framework\System\Windows\Data\BindingGroup.cs (2)
871for (int i=newItems.Count-1; i>=0; --i) 1300for (int i=0, n=list.Count; i<n; ++i)
src\Framework\System\Windows\Documents\DocumentReferenceCollection.cs (2)
73int count = _InternalList.Count; 99return _InternalList.Count;
src\Framework\System\Windows\Documents\FixedHighlight.cs (1)
144int chrct = (run.Characters == null ? 0 : run.Characters.Count);
src\Framework\System\Windows\Documents\FixedSOMElement.cs (1)
95endIndex = glyphRun.Characters == null ? 0 : glyphRun.Characters.Count;
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (6)
163for (int i = 0; i <points.Count; i ++) 171_lastPoint = points[points.Count - 1]; 176for (int i = 0; i < points.Count; i++) 185_lastPoint = points[points.Count - 1]; 191_lastPoint = points[points.Count - 1]; 447if (glyphRun.ClusterMap != null && glyphRun.ClusterMap.Count > 0)
src\Framework\System\Windows\Documents\FixedTextView.cs (3)
536int characterCount = (run.Characters == null) ? 0 : run.Characters.Count; 993int characterCount = (run.Characters == null) ? 0 : run.Characters.Count; 1019charCount = run.Characters.Count;
src\Framework\System\Windows\Documents\PageContentCollection.cs (2)
72int index = InternalList.Count - 1; 120get { return InternalList.Count; }
src\Framework\System\Windows\Documents\RubberbandSelector.cs (1)
578int characterCount = (run.Characters == null) ? 0 : run.Characters.Count;
src\Framework\System\Windows\Markup\Localizer\BamlLocalizationDictionary.cs (1)
281return _dictionary.Count;
src\Framework\System\Windows\ResourceDictionary.cs (5)
1134else if (keys.Count > 0) 1212_numDefer = keyCollection.Count; 1218for (int i = 0; i < keyCollection.Count; i++) 1281Debug.Assert(staticResources != null && staticResources.Count > 0); 1282for (int i = 0; i < staticResources.Count; i++)
src\Framework\System\Windows\Shell\JumpList.cs (2)
69|| (rejectedItems != null && reasons != null && rejectedItems.Count != reasons.Count))
src\Framework\System\Windows\Standard\Utilities.cs (1)
154for (int i = 0; i < frames.Count && bestScore != 0; ++i)
src\Framework\System\Windows\VisualStateManager.cs (1)
194for (int groupIndex = 0; groupIndex < groups.Count; ++groupIndex)
svcutil (1)
CommandLineParser.cs (1)
114Tool.Assert((values.Count == 1), "contains more than one argument please call GetArguments");
System (34)
compmod\system\codedom\compiler\CompilerInfo.cs (1)
79if (_providerOptions.Count > 0) {
compmod\system\collections\generic\debugview.cs (4)
35T[] items = new T[collection.Count]; 94KeyValuePair<K, V>[] items = new KeyValuePair<K, V>[dict.Count]; 113TKey[] items = new TKey[collection.Count]; 133TValue[] items = new TValue[collection.Count];
compmod\system\collections\generic\sortedlist.cs (2)
164: this((dictionary != null ? dictionary.Count : 0), comparer) { 171_size = dictionary.Count;
compmod\system\collections\generic\sortedset.cs (1)
1530if ((other as ICollection<T> != null) && (other as ICollection<T>).Count == 0)
compmod\system\collections\generic\stack.cs (1)
73int count = c.Count;
net\System\Net\mail\MailAddressCollection.cs (1)
50for (int i = 0; i < result.Count; i++) {
net\System\Net\Sockets\_OverlappedAsyncResult.cs (1)
145int count = buffers.Count;
net\System\Net\Sockets\Socket.cs (7)
1315if(buffers.Count == 0){ 1326int count = buffers.Count; 1851if(buffers.Count == 0){ 1861int count = buffers.Count; 3716if(buffers.Count == 0){ 4344if(buffers.Count == 0){ 9561ArraySegment<byte>[] tempList = new ArraySegment<byte>[m_BufferList.Count];
net\System\Net\webproxy.cs (5)
596if (proxies.Count > 0) { 620if (proxyList.Count == 0) { 643if (proxyList.Count == 0) { 650proxyUris = new Uri[proxyList.Count]; 651for (int i = 0; i < proxyList.Count; i++) {
net\System\Net\WebSockets\ClientWebSocket.cs (2)
228if (options.RequestedSubProtocols.Count > 0) 300if (!string.IsNullOrWhiteSpace(subProtocol) && options.RequestedSubProtocols.Count > 0)
net\System\Net\WebSockets\WebSocketBase.cs (1)
407if (sendBuffers.Count > 1 &&
net\System\Net\WebSockets\WebSocketConnectionStream.cs (2)
604BufferOffsetSize[] buffers = new BufferOffsetSize[sendBuffers.Count]; 606for (int index = 0; index < sendBuffers.Count; index++)
net\System\Net\WebSockets\WebSocketHttpListenerDuplexStream.cs (6)
347Contract.Assert(sendBuffers.Count == 1 || sendBuffers.Count == 2, 350if (sendBuffers.Count == 1) 362Contract.Assert(sendBuffers.Count == 2, "'sendBuffers.Count' MUST be '2' at this point."); 907Contract.Assert(value == null || value.Count == 2, 1141Contract.Assert(m_BufferList != null && m_BufferList.Count == 2,
System.Activities (237)
Microsoft\VisualBasic\Activities\VisualBasicHelper.cs (2)
218if (rootNamespaces.Count == 0 && rootAssemblies.Count == 0)
Microsoft\VisualBasic\Activities\XamlIntegration\VisualBasicExpressionConverter.cs (2)
37if (xsCtxReferenceAssemblies != null && xsCtxReferenceAssemblies.Count == 0) 86for (int i = 0; i < xsCtxReferenceAssemblies.Count; i++)
System\Activities\Activity.cs (22)
139if (this.Children.Count > 0 || this.ImplementationChildren.Count > 0 || this.ImportedChildren.Count > 0 || 140this.Delegates.Count > 0 || this.ImplementationDelegates.Count > 0 || this.ImportedDelegates.Count > 0 || 141this.RuntimeVariables.Count > 0 || this.ImplementationVariables.Count > 0 || 142this.RuntimeArguments.Count > 0) 523return (this.tempValidationErrors != null && this.tempValidationErrors.Count > 0); 718if (this.arguments != null && this.arguments.Count > 0) 720for (int i = 0; i < this.arguments.Count; i++) 760for (int i = 0; i < this.tempValidationErrors.Count; i++) 786string name = generatedArgumentPrefix + this.tempAutoGeneratedArguments.Count.ToString(CultureInfo.InvariantCulture); 1089Fx.Assert(this.tempAutoGeneratedArguments.Count > 0, "We should only have a non-null value here if we generated an argument"); 1102for (int i = 0; i < this.tempAutoGeneratedArguments.Count; i++) 1111if (this.arguments != null && this.arguments.Count > 1) 1123for (int i = 0; i < this.tempValidationErrors.Count; i++) 1142this.symbolCount += this.arguments.Count; 1151this.symbolCount += this.variables.Count; 1160this.symbolCount += this.implementationVariables.Count; 1932runtimeArgumentCount = runtimeArguments.Count;
System\Activities\ActivityDelegate.cs (2)
222if (this.RuntimeDelegateArguments.Count > 0) 227for (int argumentIndex = 0; argumentIndex < this.RuntimeDelegateArguments.Count; argumentIndex++)
System\Activities\ActivityInstance.cs (10)
894for (int i = 0; i < dynamicUpdateArgumentIndexes.Count; i++) 935int totalArgumentCount = this.Activity.RuntimeArguments.Count; 978int argumentCount = runtimeArguments.Count; 1023for (int i = 0; i < dynamicUpdateVariableIndexes.Count; i++) 1044int implementationVariableCount = implementationVariables.Count; 1045int runtimeVariableCount = runtimeVariables.Count; 1227int runtimeArgumentsCount = this.Activity.RuntimeArguments.Count; 1587for (int i = 0; i < this.MultipleItems.Count; i++) 1606for (int i = 0; i < this.MultipleItems.Count; i++) 1672for (int i = 0; i < base.MultipleItems.Count; i++)
System\Activities\ActivityUtilities.cs (17)
465for (int i = 0; i < targetActivity.RuntimeArguments.Count; i++) 530for (int i = 0; i < children.Count; i++) 547if (arguments.Count > 0) 554for (int i = 0; i < arguments.Count; i++) 578if (variables.Count > 0) 585for (int i = 0; i < variables.Count; i++) 609for (int i = 0; i < delegates.Count; i++) 680for (int i = 0; i < activity.HandlerOf.RuntimeDelegateArguments.Count; i++) 737for (int i = 0; i < tempValidationErrors.Count; i++) 801if (!options.SkipConstraints && parentChain.WillExecute && childActivity.CanBeExecuted && constraints.Count > 0) 934for (int i = 0; i < children.Count; i++) 942for (int i = 0; i < delegates.Count; i++) 950for (int i = 0; i < variables.Count; i++) 958for (int i = 0; i < arguments.Count; i++) 1175return this.multipleItems.Count; 1194Fx.Assert(this.multipleItems.Count > index, "Users should never be out of range."); 1203Fx.Assert(singleItem == null && (this.multipleItems == null || this.multipleItems.Count == 0), "We should not have any items if calling set.");
System\Activities\CodeActivity.cs (3)
84if (this.RuntimeArguments == null || this.RuntimeArguments.Count == 0) 183if (this.RuntimeArguments == null || this.RuntimeArguments.Count == 0 || 186(this.RuntimeArguments.Count == 1 && this.RuntimeArguments[0].Name == Argument.ResultValue))
System\Activities\Debugger\DebugInfo.cs (1)
301List<RuntimeArgument> cleanUpList = new List<RuntimeArgument>(ancestorArguments.Count);
System\Activities\Debugger\SourceLocationProvider.cs (2)
55if (string.IsNullOrEmpty(symbolString) && rootActivity.Children != null && rootActivity.Children.Count > 0) 105if (rootActivity.Children != null && rootActivity.Children.Count > 0)
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (1)
148SymbolHelper.WriteEncodedInt32(writer, this.Symbols.Count);
System\Activities\DynamicUpdate\ActivityComparer.cs (9)
71return originalMembers == null || originalMembers.Count == 0; 76return currentMembers.Count == 0; 79if (currentMembers.Count != originalMembers.Count) 86for (int i = 0; i < currentMembers.Count; i++) 430else if (currentActivity.RuntimeArguments != null && currentActivity.RuntimeArguments.Count > 0) 432Fx.Assert(currentActivity.RuntimeArguments.Count == originalActivity.RuntimeArguments.Count, "RuntimeArguments.Count for both currentActivity and originalActivity must be equal."); 436for (int i = 0; i < currentActivity.RuntimeArguments.Count; i++)
System\Activities\DynamicUpdate\DynamicUpdateMap.cs (12)
126return this.Entries.Count; 240workflowDefinition.Children.Count == 0 && 241workflowDefinition.ImportedChildren.Count == 0 && 242workflowDefinition.Delegates.Count == 0 && 243workflowDefinition.ImportedDelegates.Count == 0 && 244workflowDefinition.RuntimeVariables.Count == 0; 382for (int i = 0; i < this.Entries.Count; i++) 422if (currentMap == null || currentMap.Entries.Count == 0) 499if (first.NewArguments.Count != second.OldArguments.Count) 501errorContext.Throw(SR.InvalidMergeMapArgumentCount(first.NewArguments.Count, second.OldArguments.Count));
System\Activities\DynamicUpdate\DynamicUpdateMapBuilder.cs (24)
235for (int i = 0; i < variables.Count; i++) 543originalElement.ImplementationVariables.Count != currentElement.ImplementationVariables.Count, 557envMap.NewVariableCount = currentElement.RuntimeVariables != null ? currentElement.RuntimeVariables.Count : 0; 558envMap.NewPrivateVariableCount = currentElement.ImplementationVariables != null ? currentElement.ImplementationVariables.Count : 0; 559envMap.NewArgumentCount = currentElement.RuntimeArguments != null ? currentElement.RuntimeArguments.Count : 0; 561envMap.OldVariableCount = originalElement.RuntimeVariables.Count; 562envMap.OldPrivateVariableCount = originalElement.ImplementationVariables.Count; 563envMap.OldArgumentCount = oldArguments != null ? oldArguments.Count : 0; 566|| (originalElement.HandlerOf.RuntimeDelegateArguments.Count == currentElement.HandlerOf.RuntimeDelegateArguments.Count), 568envMap.RuntimeDelegateArgumentCount = originalElement.HandlerOf == null ? 0 : originalElement.HandlerOf.RuntimeDelegateArguments.Count; 606if (newVariables != null && newVariables.Count > 0) 608for (int i = 0; i < newVariables.Count; i++) 653if (oldVariables != null && (newVariables == null || newVariables.Count < oldVariables.Count)) 679if (newArguments != null && newArguments.Count > 0) 681for (int i = 0; i < newArguments.Count; i++) 711if (oldArguments != null && (newArguments == null || newArguments.Count < oldArguments.Count)) 767for (int i = 0; i < variables.Count; i++) 1078for (int i = 0; i < originalVariables.Count; i++) 1089if (oldIndex >= 0 && oldIndex < originalVariables.Count) 1250if (matchingOwner != null && matchingOwner.RuntimeVariables.Count > index)
System\Activities\DynamicUpdate\DynamicUpdateServices.cs (2)
246if (namespacesForImplementation.Count > 0) 252if (referencesForImplementation.Count > 0)
System\Activities\DynamicUpdate\EnvironmentUpdateMap.cs (3)
108return this.variableEntries != null && this.variableEntries.Count > 0; 116return this.privateVariableEntries != null && this.privateVariableEntries.Count > 0; 124return this.argumentEntries != null && this.argumentEntries.Count > 0;
System\Activities\DynamicUpdate\InstanceUpdateException.cs (3)
88if (blockingActivities != null && blockingActivities.Count > 0) 91for (int i = 0; i < blockingActivities.Count - 1; i++) 96errorMsgs.Append(GetMessage(blockingActivities[blockingActivities.Count - 1]));
System\Activities\Expressions\CompiledExpressionInvoker.cs (1)
323if (requiredLocationNames != null && requiredLocationNames.Count > 0)
System\Activities\Expressions\TextExpression.cs (5)
70if (result.Count == 0 && !isImplementation && GetReferences(root).Count == 0) 129if (result.Count == 0 && !isImplementation && GetNamespaces(root).Count == 0) 243return result.Count > 0;
System\Activities\ExpressionUtilities.cs (6)
1201for (int i = 0; i < bindings.Count; i++) 1211temporaryBindings = new List<MemberBinding>(bindings.Count); 1294for (int i = 0; i < expressions.Count; i++) 1305temporaryExpressions = new List<Expression>(expressions.Count); 1338for (int i = 0; i < initializers.Count; i++) 1349temporaryInitializers = new List<ElementInit>(initializers.Count);
System\Activities\Hosting\WorkflowInstance.cs (3)
334if (blockingActivities.Count == 0) 434if (this.WorkflowDefinition.RuntimeArguments.Count > 0 || (actualInputs != null && actualInputs.Count > 0))
System\Activities\HybridDictionary.cs (2)
30return this.dictionary.Count; 165if (this.dictionary.Count == 0)
System\Activities\IdSpace.cs (3)
48return this.members.Count; 71if (this.members == null || lookupId < 0 || lookupId >= this.members.Count) 99Fx.Assert(this.members.Count == element.InternalId - 1, "We should always be adding the next element");
System\Activities\NativeActivityContext.cs (2)
2113(inputParameters != null && inputParameters.Count != expectedParameterCount)) 2115throw FxTrace.Exception.Argument("inputParameters", SR.InputParametersCountMismatch(inputParameters == null ? 0 : inputParameters.Count, expectedParameterCount));
System\Activities\Runtime\ActivityExecutor.cs (7)
2347for (int i = 0; i < rootArguments.Count; i++) 2711if (hostProperties != null && hostProperties.Count > 0) 2713Dictionary<string, ExecutionPropertyManager.ExecutionProperty> rootProperties = new Dictionary<string, ExecutionPropertyManager.ExecutionProperty>(hostProperties.Count); 2715for (int i = 0; i < hostProperties.Count; i++) 2800bool requiresSymbolResolution = handlerInstance.Initialize(parent, this.instanceMap, executionEnvironment, this.lastInstanceId, this, activityDelegate.RuntimeDelegateArguments.Count); 2803for (int i = 0; i < activityDelegateParameters.Count; i++) 2818if (inputParameters != null && inputParameters.Count > 0)
System\Activities\Runtime\ActivityInstanceMap.cs (6)
37if (this.instanceMapping == null || this.instanceMapping.Count == 0) 43InstanceList[] lists = new InstanceList[this.instanceMapping.Count]; 426for (int i = 0; i < entries.Count; i++) 504for (int i = this.updateList.Count - 1; i >= 0; i--) 713for (int i = 0; i < base.MultipleItems.Count; i++) 732for (int i = 0; i < base.MultipleItems.Count; i++)
System\Activities\Runtime\BookmarkList.cs (1)
33for (int i = 0; i < this.MultipleItems.Count; i++)
System\Activities\Runtime\BookmarkManager.cs (1)
272for (int i = 0; i < multipleBookmarks.Count; i++)
System\Activities\Runtime\BookmarkScopeManager.cs (1)
575for (int i = 0; i < multipleBookmarks.Count; i++)
System\Activities\Runtime\DelegateCompletionCallbackWrapper.cs (1)
41for (int i = 0; i < runtimeArguments.Count; i++)
System\Activities\Runtime\ExclusiveHandleList.cs (1)
31for (int i = 0; i < this.MultipleItems.Count; i++)
System\Activities\Runtime\FuncCompletionCallbackWrapper.cs (1)
43for (int i = 0; i < activity.RuntimeArguments.Count; i++)
System\Activities\Runtime\LocationEnvironment.cs (10)
308for (int i = 0; i < variables.Count; i++) 528int actualRuntimeDelegateArgumentCount = activity.HandlerOf == null ? 0 : activity.HandlerOf.RuntimeDelegateArguments.Count; 530if (map.NewArgumentCount != activity.RuntimeArguments.Count || 531map.NewVariableCount != activity.RuntimeVariables.Count || 532map.NewPrivateVariableCount != activity.ImplementationVariables.Count || 537activity.RuntimeArguments.Count, activity.RuntimeVariables.Count, activity.ImplementationVariables.Count, actualRuntimeDelegateArgumentCount)))); 604for (int i = 0; i < map.ArgumentEntries.Count; i++) 670for (int i = 0; i < variableEntries.Count; i++)
System\Activities\Runtime\ResolveNextArgumentWorkItem.cs (1)
75for (int i = this.nextArgumentIndex; i < activity.RuntimeArguments.Count; i++)
System\Activities\Runtime\WorkItem.cs (2)
274if (keysToDisassociate != null && keysToDisassociate.Count > 0) 284if (keysToAssociate != null && keysToAssociate.Count > 0)
System\Activities\Statements\InvokeDelegate.cs (4)
73if (this.DelegateArguments.Count != targetDelegateArguments.Count) 81for (int i = 0; i < targetDelegateArguments.Count; i++) 137if (DelegateArguments.Count > 0)
System\Activities\Tracking\ActivityStateRecord.cs (7)
226int count = containsWildcard ? currentElement.RuntimeVariables.Count + variables.Count - 1 : variables.Count; 236for (int i = 0; i < currentElement.RuntimeVariables.Count; i++) 288int count = containsWildcard ? currentElement.RuntimeArguments.Count : arguments.Count; 292for (int i = 0; i < currentElement.RuntimeArguments.Count; i++)
System\Activities\Tracking\CustomTrackingRecord.cs (1)
49if (record.data != null && record.data.Count > 0)
System\Activities\Tracking\EtwTrackingParticipant.cs (2)
294record.Arguments.Count > 0 ? PrepareDictionary(record.Arguments) : emptyItemsTag, 295record.Variables.Count > 0 ? PrepareDictionary(record.Variables) : emptyItemsTag,
System\Activities\Tracking\TrackingProvider.cs (4)
42return (this.pendingTrackingRecords != null && this.pendingTrackingRecords.Count > 0) 164for (int j = 0; j < this.pendingTrackingRecords.Count; j++) 221for (int i = this.pendingTrackingRecords.Count - 1; i >= 0; i--) 332while (this.currentRecord < this.provider.pendingTrackingRecords.Count)
System\Activities\Tracking\TrackingQuery.cs (1)
33return this.queryAnnotations != null && this.queryAnnotations.Count > 0;
System\Activities\Tracking\TrackingRecord.cs (1)
160return (this.annotations != null && this.annotations.Count > 0);
System\Activities\Validation\ActivityValidationServices.cs (10)
69if (validationErrors != null && validationErrors.Count > 0) 164if (validationErrors != null && validationErrors.Count > 0) 218for (int i = 0; i < validationErrors.Count; i++) 369for (int constraintIndex = 0; constraintIndex < constraints.Count; constraintIndex++) 411if (validationErrorList.Count > 0) 421for (int validationErrorIndex = 0; validationErrorIndex < validationErrorList.Count; validationErrorIndex++) 447if (validationErrors != null && validationErrors.Count > 0) 449for (int i = 0; i < validationErrors.Count; i++) 587for (int i = 0; i < configuredActivity.RuntimeArguments.Count; i++) 603for (int i = 0; i < runtimeArguments.Count - 1; i++)
System\Activities\Validation\ExtensionMethods.cs (2)
41return BinarySearch(items, 0, items.Count, value, comparer); 46QuickSort(items, 0, items.Count - 1, comparer);
System\Activities\Validation\ValidationContext.cs (2)
79if (this.getChildrenErrors != null && this.getChildrenErrors.Count > 0) 86for (int i = 0; i < this.getChildrenErrors.Count; i++)
System\Activities\Validation\ValidationHelper.cs (1)
215string[] subsetGroups = new string[sortedList.Count];
System\Activities\Validation\ValidationSettings.cs (1)
57return this.additionalConstraints != null && this.additionalConstraints.Count > 0;
System\Activities\WorkflowApplication.cs (2)
334this.instanceMetadata = new Dictionary<XName, InstanceValue>(writeOnlyValues.Count); 5646Fx.Assert(this.instanceMetadata.Count == 1, "We should only have the default metadata from InitializeInstanceMetadata");
System\Activities\WorkflowApplicationInstance.cs (1)
116return activitiesBlockingUpdate == null || activitiesBlockingUpdate.Count == 0;
System\Activities\WorkflowInspectionServices.cs (9)
93for (; i < activity.RuntimeArguments.Count; i++) 103for (i = 0; i < activity.RuntimeVariables.Count; i++) 113for (i = 0; i < activity.ImplementationVariables.Count; i++) 123for (i = 0; i < activity.Children.Count; i++) 128for (i = 0; i < activity.ImportedChildren.Count; i++) 133for (i = 0; i < activity.ImplementationChildren.Count; i++) 138for (i = 0; i < activity.Delegates.Count; i++) 148for (i = 0; i < activity.ImportedDelegates.Count; i++) 158for (i = 0; i < activity.ImplementationDelegates.Count; i++)
System\Activities\XamlIntegration\ActivityXamlServices.cs (4)
624if (this.languages == null || this.languages.Count == 0 || this.languages.Count > 1) 650return this.languages != null && this.languages.Count > 1; 656if (this.languages.Count > 1)
System\Activities\XamlIntegration\AssemblyReferenceConverter.cs (1)
36schemaContext.ReferenceAssemblies.Count > 0)
System\Activities\XamlIntegration\CompiledDataContext.cs (1)
181IList<Location> temp = new List<Location>(locationReferences.Count);
System\Activities\XamlIntegration\CompiledExpressionActivityVisitor.cs (5)
36if (activity.RuntimeVariables != null && activity.RuntimeVariables.Count > 0) 190for (int i = 0; i < activity.Children.Count; i++) 209for (int i = 0; i < activity.ImportedChildren.Count; i++) 353if (activity.RuntimeVariables != null && activity.RuntimeVariables.Count > 0) 389for (int i = 0; i < activity.ImplementationChildren.Count; i++)
System\Activities\XamlIntegration\CompiledLocation.cs (4)
140if (this.locationReferences == null || this.locationReferences.Count == 0) 145List<Tuple<string, Type>> durableCache = new List<Tuple<string, Type>>(this.locationReferences.Count); 156if (value == null || value.Count == 0) 162this.locationReferences = new List<LocationReference>(value.Count);
System\Activities\XamlIntegration\TextExpressionCompiler.cs (5)
328if (activity.RuntimeArguments != null && activity.RuntimeArguments.Count > 0) 374if (activity.RuntimeVariables != null && activity.RuntimeVariables.Count > 0) 382if (activity.RuntimeVariables != null && activity.RuntimeVariables.Count > 0) 438if (descriptor.Fields.Count > 0) 453if (descriptor.Duplicates.Count > 0 && this.IsVB)
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\InvokeDelegateValidationFeature.cs (1)
159if (activity.DelegateArguments.Count != metadata.Count)
System\ServiceModel\Activities\Presentation\ContentCorrelationTypeExpander.xaml.cs (1)
137this.emptyContent.Visibility = null == this.TypesToExpand || 0 == this.TypesToExpand.Count ? Visibility.Visible : Visibility.Collapsed;
System.Activities.DurableInstancing (5)
System\Activities\DurableInstancing\CorrelationKey.cs (1)
68result = new List<CorrelationKey>(keys.Count);
System\Activities\DurableInstancing\SaveWorkflowAsyncResult.cs (2)
59if (((SaveWorkflowCommand)command).InstanceKeyMetadataChanges.Count > 0) 158if (saveWorkflowCommand.InstanceData.Count > 0)
System\Activities\DurableInstancing\SerializationUtilities.cs (2)
158if (properties.Count > 0) 204if (metadataProperties != null && metadataProperties.Count > 0)
System.Activities.Presentation (27)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (2)
135Fx.Assert(parentProperty.ModelPropertySet.Count > 0, "parentProperty.ModelPropertySet.Count should be > 0"); 146bool multiSelect = parentProperty.ModelPropertySet.Count > 1;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (4)
169if (existingModelPropertiesForProperty.Count < containerCounter) 197if (pair.Value.Count < containerCounter) 204if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.IsValueType || pair.Value[0].PropertyType.Equals(typeof(string)))) 286get { return _parentProperties == null ? 0 : _parentProperties.Count; }
System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (2)
172return null != this.validationErrors && this.validationErrors.Count != 0; 688if (0 == instance.validationErrors.Count)
System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (3)
373for (int index = 0; index < items.Count; ++index) 563if (sourceList.Count != destinationList.Count)
System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
71if (args.Errors.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
377if (argumentValues.Count == 1)
System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (3)
70if ((namespaces != null) && ((namespaces.Count > 0) || ((namespaces.Count == 0) && (settings == null)))) 559this.InsertCore(this.TextExpressionNamespaces.Count, ns);
System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
56if ((importedNamespaces != null) && (importedNamespaces.Count > 0)) 86if ((importedNamespaces == null) || (importedNamespaces.Count == 0))
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
1140if (toBeDeleted.Count == 0) 1145if (toBeDeleted.Count == 1)
System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (1)
158get { return _selectedObjects.Count; }
System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (3)
92if (mergedHintTextMap != null && mergedHintTextMap.Count > 0) 142if (lhs == null || lhs.Count == 0) 147if (rhs == null || rhs.Count == 0)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
234if (droppedObjects.Count == 1 && movedViewElements.Count == 1) 243Fx.Assert(droppedObjects.Count == 1, "Dropping from Toolbox with count != 1");
System.Activities.Presentation\System\Activities\Presentation\Xaml\ErrorTolerantObjectWriter.cs (1)
789if (xamlType.TypeArguments != null && xamlType.TypeArguments.Count > 0)
System.AddIn (3)
System\Addin\Hosting\AddInToken.cs (1)
112if (pairs.Count != 0)
System\Addin\Hosting\ReadOnlyDictionary.cs (1)
111return m_dictionary.Count;
System\Addin\Pipeline\ListContractAdapter.cs (1)
89return m_list.Count;
System.ComponentModel.DataAnnotations (2)
DataAnnotations\UIHintAttribute.cs (2)
169if (leftParams.Count != rightParams.Count) {
System.Configuration (4)
System\Configuration\ConfigurationErrorsException.cs (2)
94if (coll.Count > 1) { 95_errors = new ConfigurationException[coll.Count];
System\Configuration\ErrorsHelper.cs (2)
36if (col.Count == 1) { 46if (coll == null || coll.Count == 0) {
System.Core (77)
Microsoft\Scripting\Actions\ExpandoObject.cs (2)
306string[] items = new string[collection.Count]; 422object[] items = new object[collection.Count];
Microsoft\Scripting\Ast\BlockExpression.cs (5)
337Debug.Assert(expressions.Count != 0); 343Debug.Assert(index >= 0 && index < _expressions.Count); 350return _expressions.Count; 374return _variables.Count; 451return _body.Count;
Microsoft\Scripting\Ast\DebugViewWriter.cs (1)
293if (open == '{' || expressions.Count > 1) {
Microsoft\Scripting\Ast\DynamicExpression.cs (1)
445return _arguments.Count;
Microsoft\Scripting\Ast\Expression.cs (1)
369for (int i = 0; i < listItems.Count; i++) {
Microsoft\Scripting\Ast\IndexExpression.cs (3)
52Debug.Assert(instance.Type.GetArrayRank() == arguments.Count); 123return _arguments.Count; 136Debug.Assert(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\InvocationExpression.cs (2)
102return _arguments.Count; 115Debug.Assert(arguments == null || arguments.Length == _arguments.Count);
Microsoft\Scripting\Ast\MethodCallExpression.cs (13)
156return _arguments.Count; 166Debug.Assert(args == null || args.Count == _arguments.Count); 188return _arguments.Count; 202Debug.Assert(args == null || args.Count == _arguments.Count); 235Debug.Assert(args == null || args.Count == 1); 275Debug.Assert(args == null || args.Count == 2); 316Debug.Assert(args == null || args.Count == 3); 359Debug.Assert(args == null || args.Count == 4); 404Debug.Assert(args == null || args.Count == 5); 452Debug.Assert(args == null || args.Count == 2); 501Debug.Assert(args == null || args.Count == 3);
Microsoft\Scripting\Ast\NewExpression.cs (1)
87return _arguments.Count;
Microsoft\Scripting\Compiler\CompilerScope.cs (1)
116Definitions = new Dictionary<ParameterExpression, VariableStorageKind>(variables.Count);
Microsoft\Scripting\Compiler\DelegateHelpers.Generated.cs (2)
55Type[] paramTypes = new Type[args.Count + 2]; 58for (int i = 0; i < args.Count; i++) {
Microsoft\Scripting\Compiler\ILGen.cs (2)
897il.EmitInt(items.Count); 899for (int i = 0; i < items.Count; i++) {
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (3)
926if (variables.Count != arguments.Count) { 929for (int i = 0, n = variables.Count; i < n; i++) {
Microsoft\Scripting\Compiler\Set.cs (1)
41_data = new Dictionary<T, object>(list.Count);
Microsoft\Scripting\Compiler\StackSpiller.Temps.cs (1)
162for (int i = 0, count = expressions.Count; i < count; i++) {
Microsoft\Scripting\Utils\CollectionExtensions.cs (8)
69int count = collection.Count; 97if (first.Count != second.Count) { 121int count = collection.Count; 169T[] res = new T[list.Count + 1]; 176T[] res = new T[list.Count + 1]; 178res[list.Count] = item; 194return list[list.Count - 1];
Microsoft\Scripting\Utils\ContractUtils.cs (3)
64if (collection.Count == 0) { 80if (offset < 0 || array.Count - offset < count) throw new ArgumentOutOfRangeException(offsetName); 90for (int i = 0; i < array.Count; i++) {
Microsoft\Scripting\Utils\ReadOnlyCollectionBuilder.cs (1)
78int count = c.Count;
System\Collections\Generic\HashSet.cs (6)
145int suggestedCapacity = coll == null ? 0 : coll.Count; 511if (otherAsCollection.Count == 0) { 660return otherAsCollection.Count > 0; 702if (otherAsCollection.Count == 0) { 752if (otherAsCollection.Count == 0) { 824if (m_count == 0 && otherAsCollection.Count > 0) {
System\Diagnostics\Eventing\Reader\EventLogPropertySelector.cs (1)
50paths = new string[coll.Count];
System\Linq\Enumerable.cs (9)
1046if (list.Count > 0) return list[0]; 1069if (list.Count > 0) return list[0]; 1092int count = list.Count; 1128int count = list.Count; 1161switch (list.Count) { 1198switch (list.Count) { 1250if (index < list.Count) return list[index]; 1317if (collectionoft != null) return collectionoft.Count; 2674count = collection.Count;
System\Linq\Parallel\Partitioning\PartitionedDataSource.cs (4)
94int listCount = sourceAsList.Count; 430m_elementCount = data.Count; 537int smallerChunkSize = data.Count / partitionCount; 538int biggerChunkCount = data.Count % partitionCount;
System\Linq\Parallel\QueryOperators\ListQueryResults.cs (1)
48get { return m_source.Count; }
System\Linq\Parallel\QueryOperators\PartitionerQueryOperator.cs (2)
162if (partitionerPartitions.Count != partitionCount) 188if (partitionerPartitions.Count != partitionCount)
System\Linq\Parallel\Utils\Lookup.cs (1)
57int count = m_dict.Count;
System\Linq\ParallelEnumerable.cs (2)
1925return sourceAsCollection.Count; 1998return sourceAsCollection.Count;
System.Data (54)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyEntryCollection.cs (2)
135Fx.Assert(parentProperty.ModelPropertySet.Count > 0, "parentProperty.ModelPropertySet.Count should be > 0"); 146bool multiSelect = parentProperty.ModelPropertySet.Count > 1;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Model\ModelPropertyMerger.cs (4)
169if (existingModelPropertiesForProperty.Count < containerCounter) 197if (pair.Value.Count < containerCounter) 204if (pair.Value.Count > 1 && !(pair.Value[0].PropertyType.IsValueType || pair.Value[0].PropertyType.Equals(typeof(string)))) 286get { return _parentProperties == null ? 0 : _parentProperties.Count; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DesignObjectWrapper.cs (2)
172return null != this.validationErrors && this.validationErrors.Count != 0; 688if (0 == instance.validationErrors.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\DragDropHelper.cs (3)
373for (int index = 0; index < items.Count; ++index) 563if (sourceList.Count != destinationList.Count)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Metadata\ActivityArgumentHelper.cs (1)
71if (args.Errors.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelSearchServiceImpl.cs (1)
377if (argumentValues.Count == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceListProperty.cs (3)
70if ((namespaces != null) && ((namespaces.Count > 0) || ((namespaces.Count == 0) && (settings == null)))) 559this.InsertCore(this.TextExpressionNamespaces.Count, ns);
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\NamespaceSettingsHandler.cs (2)
56if ((importedNamespaces != null) && (importedNamespaces.Count > 0)) 86if ((importedNamespaces == null) || (importedNamespaces.Count == 0))
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (2)
1140if (toBeDeleted.Count == 0) 1145if (toBeDeleted.Count == 1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\Selection.cs (1)
158get { return _selectedObjects.Count; }
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\TypeResolvingOptions.cs (3)
92if (mergedHintTextMap != null && mergedHintTextMap.Count > 0) 142if (lhs == null || lhs.Count == 0) 147if (rhs == null || rhs.Count == 0)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\WorkflowItemPresenter.cs (2)
234if (droppedObjects.Count == 1 && movedViewElements.Count == 1) 243Fx.Assert(droppedObjects.Count == 1, "Dropping from Toolbox with count != 1");
fx\src\data\Microsoft\SqlServer\Server\SmiMetaData.cs (1)
409_maxLength = _fieldMetaData.Count;
fx\src\data\Microsoft\SqlServer\Server\SmiMetaDataProperty.cs (14)
109if (_columns.Count <= ordinal) { 120Debug.Assert(0 == _columns.Count || countToMatch == _columns.Count, 121"SmiDefaultFieldsProperty.CheckCount: DefaultFieldsProperty size (" + _columns.Count + 128for (int columnOrd = 0; columnOrd < _columns.Count; columnOrd++) { 166if (_columns.Count <= ordinal) { 181Debug.Assert(0 == _columns.Count || countToMatch == _columns.Count, 182"SmiDefaultFieldsProperty.CheckCount: DefaultFieldsProperty size (" + _columns.Count + 223if (_defaults.Count <= ordinal) { 234Debug.Assert(0 == _defaults.Count || countToMatch == _defaults.Count, 235"SmiDefaultFieldsProperty.CheckCount: DefaultFieldsProperty size (" + _defaults.Count + 242for(int columnOrd = 0; columnOrd < _defaults.Count; columnOrd++) {
fx\src\data\Microsoft\SqlServer\Server\ValueUtilsSmi.cs (5)
1848for (int i = 0; i < metaData.Count; i++) { 3645ExtendedClrTypeCode[] cellTypes = new ExtendedClrTypeCode[metaData.FieldMetaData.Count]; 3646for(int i=0; i<metaData.FieldMetaData.Count; i++) { 3654for(int i=0; i<metaData.FieldMetaData.Count; i++) { 3720SmiExtendedMetaData[] mdFields = new SmiExtendedMetaData[metaData.FieldMetaData.Count];
fx\src\data\System\Data\Common\DbConnectionStringBuilder.cs (1)
206object[] values = new object[keys.Count];
fx\src\data\System\Data\SqlClient\TdsParser.cs (5)
9028if (0 == metaData.FieldMetaData.Count) { 9033WriteUnsignedShort(checked((ushort) metaData.FieldMetaData.Count), stateObj); 9037for(int i=0; i<metaData.FieldMetaData.Count; i++) { 9095List<TdsOrderUnique> columnList = new List<TdsOrderUnique>(metaData.FieldMetaData.Count); 9096for(int i=0; i<metaData.FieldMetaData.Count; i++) {
fx\src\data\System\Data\SqlClient\TdsRecordBufferSetter.cs (2)
43_fieldSetters = new TdsValueSetter[md.FieldMetaData.Count]; 44for(int i=0; i<md.FieldMetaData.Count; i++) {
System.Data.Entity (219)
System\Data\Common\CommandTrees\BasicCommandTreeVisitor.cs (1)
41for (int idx = 0; idx < modificationClauses.Count; idx++)
System\Data\Common\CommandTrees\BasicExpressionVisitor.cs (4)
132for(int idx = 0; idx < expressionList.Count; idx++) 146for(int idx = 0; idx < aggregates.Count; idx++) 165for (int idx = 0; idx < relatedEntityReferences.Count; idx++) 725for(int idx = 0; idx < expression.SortOrder.Count; idx++)
System\Data\Common\CommandTrees\DefaultExpressionVisitor.cs (5)
146Debug.Assert(newArguments.Count == 1, "Function aggregate had more than one argument?"); 170Debug.Assert(newArguments.Count == 1, "Group aggregate had more than one argument?"); 232for (int idx = 0; idx < list.Count; idx++) 974var boundKeys = groupOutput.Properties.Take(newKeys.Count).Select(p => p.Name).Zip(newKeys).ToList(); 975var boundAggs = groupOutput.Properties.Skip(newKeys.Count).Select(p => p.Name).Zip(newAggs).ToList();
System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (2)
2505List<DbSortClause> newSortOrder = new List<DbSortClause>(source.SortOrder.Count + 1); 2785if (properties == null || properties.Count != 1)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (6)
1153keyValueValidator.ExpectedElementCount = keyMembers.Count; 1518argValidator.ExpectedElementCount = lambda.Variables.Count; 1652if (relationships.Count > 0) 1654List<DbRelatedEntityRef> relatedRefs = new List<DbRelatedEntityRef>(relationships.Count); 1655for (int idx = 0; idx < relationships.Count; idx++) 1897for (int idx = 0; idx < functionParams.Count; idx++)
System\Data\Common\CommandTrees\Internal\ExpressionCopier.cs (1)
95Debug.Assert(null != candidateFunctions && candidateFunctions.Count > 0, "Perspective.TryGetFunctionByName returned true with null/empty function result list");
System\Data\Common\CommandTrees\Internal\ExpressionKeyGen.cs (2)
479for (int idx = 0; idx < e.When.Count; idx++) 645Debug.Assert(ga.Arguments.Count == 1, "Group aggregate must have one argument.");
System\Data\Common\CommandTrees\Internal\ExpressionPrinter.cs (9)
375for (int idx = 0; idx < paramInfo.Count; idx++) 387if (paramNames.Count > 0) 407for (int idx = 0; idx < bindings.Count; idx++) 573(e.Instance.ExpressionKind == DbExpressionKind.Property && 0 == inst.Children.Count)) 680if (0 == argInfo.Children.Count) 740for (int idx = 0; idx < e.When.Count; idx++) 767for (int idx = 0; idx < properties.Count; idx++) 911for (int idx = 0; idx < e.Keys.Count; idx++) 918for (int idx = e.Keys.Count; idx < outputType.Properties.Count; idx++)
System\Data\Common\CommandTrees\Internal\ViewSimplifier.cs (11)
203conditions = new List<DbExpression>(discriminatedConstructor.When.Count); 204for (int idx = 0; idx < discriminatedConstructor.When.Count; idx++) 444Dictionary<string, DbExpression> columnValues = new Dictionary<string, DbExpression>(rowConstructor.Arguments.Count); 445for (int idx = 0; idx < rowConstructor.Arguments.Count; idx++) 456if(casePredicate.When.Count != 1 || 487List<DbExpression> newWhens = new List<DbExpression>(entitySelector.When.Count); 488List<DbExpression> newThens = new List<DbExpression>(entitySelector.Then.Count); 490for (int idx = 0; idx < entitySelector.When.Count; idx++) 568List<DbExpression> rewrittenPredicates = new List<DbExpression>(caseExpression.When.Count); 594if (caseExpression.Then.Count != 1 && caseExpression.Then[0].ExpressionKind == DbExpressionKind.Constant) 638Dictionary<string, DbExpression> bindings = new Dictionary<string, DbExpression>(innerNew.Arguments.Count);
System\Data\Common\CommandTrees\ValueExpressions.cs (1)
331Debug.Assert(lambda.Variables.Count == args.Count, "DbLambdaExpression argument count does not match Lambda parameter count");
System\Data\Common\DbXmlEnabledProviderManifest.cs (1)
103if (errors.Count != 0)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (8)
97List<TypeUsage> argTypesFlat = new List<TypeUsage>(argTypes.Count); 108List<int[]> ranks = new List<int[]>(functionsMetadata.Count); 110for (int i = 0, maxTotalRank = int.MinValue; i < functionsMetadata.Count; i++) 206if (argumentList.Count != overloadParamList.Count) 214List<TypeUsage> flatOverloadParamList = new List<TypeUsage>(flatArgumentList.Count); 215for (int i = 0; i < overloadParamList.Count; ++i) 259Debug.Assert(flatArgumentList.Count == flatOverloadParamList.Count, "flatArgumentList.Count == flatOverloadParamList.Count");
System\Data\Common\EntitySql\SemanticAnalyzer.cs (3)
3982Debug.Assert(projectionExpression.Arguments.Count == inputVariableTypeProperties.Count, "projectionExpression.Arguments.Count == inputVariableTypeProperties.Count"); 3983for (int i = 0; i < projectionExpression.Arguments.Count; ++i) 4312if (rightColl.Arguments.Count == 0)
System\Data\Common\EntitySql\TypeResolver.cs (2)
141Debug.Assert(functionMetadata != null && functionMetadata.Count > 0, "FunctionMetadata must not be null or empty"); 159Debug.Assert(functionMetadata != null && functionMetadata.Count > 0, "FunctionMetadata must not be null or empty");
System\Data\Common\EntityUtil.cs (1)
1791count = collection.Count;
System\Data\Common\Utils\Helpers.cs (4)
97Debug.Assert(nodes.Count > 0, "At least one node is required"); 100if (nodes.Count == 1) 106if (nodes.Count == 2) 124int nodesToPair = nodes.Count;
System\Data\Common\Utils\MetadataHelper.cs (1)
806int length = schemaErrors.Count;
System\Data\Common\Utils\TreePrinter.cs (1)
191if (!_showLines || (parentScope.Position == parentScope.Children.Count && scopeIdx != _scopes.Count - 1))
System\Data\EntityClient\EntityCommandDefinition.cs (2)
97int resultSetCount = returnParameters.Count > 1 ? returnParameters.Count : 1;
System\Data\EntityClient\EntityConnection.cs (1)
1084for (int i = 0; i < paths.Count; i++)
System\Data\EntityModel\SchemaObjectModel\EntityContainerEntitySet.cs (1)
232if (_entityType.KeyProperties.Count == 0)
System\Data\EntityModel\SchemaObjectModel\ModelFunction.cs (1)
137Debug.Assert(ReturnTypeList.Count == 1, "returnTypeList should always be non-empty. Multiple ReturnTypes are only possible on FunctionImports.");
System\Data\EntityModel\SchemaObjectModel\ReferentialConstraint.cs (10)
78Debug.Assert(_principalRole.RoleProperties.Count != 0, "There should be some ref properties in Principal Role"); 79Debug.Assert(_dependentRole.RoleProperties.Count != 0, "There should be some ref properties in Dependent Role"); 188if (_dependentRole.RoleProperties.Count != _principalRole.RoleProperties.Count) 196for (int i = 0; i < _dependentRole.RoleProperties.Count; i++) 224if(role.RoleProperties.Count == 0) 256if (itemType.KeyProperties.Count != roleElement.RoleProperties.Count) 262for (int i = 0; i < roleElement.RoleProperties.Count; i++) 272for (int j = 0; j < itemType.KeyProperties.Count; j++)
System\Data\EntityModel\SchemaObjectModel\Relationship.cs (3)
121if ( end.Operations.Count > 0 ) 130if (Constraints.Count == 0) 193if (Ends.Count == 2)
System\Data\EntityModel\SchemaObjectModel\RelationshipEnd.cs (2)
108if (Multiplicity == RelationshipMultiplicity.Many && Operations.Count != 0) 119if (this.ParentElement.Constraints.Count == 0 && Multiplicity == null)
System\Data\EntityModel\SchemaObjectModel\SchemaEnumType.cs (2)
167if (_enumMembers.Count == 0) 173long previousValue = (long)_enumMembers[_enumMembers.Count - 1].Value;
System\Data\EntityModel\SchemaObjectModel\SchemaManager.cs (2)
81if (schemaCollection.Count != 0) 87Debug.Assert(errors.Count != 0, "There must be some error encountered");
System\Data\Mapping\FunctionImportMappingComposable.cs (3)
145Debug.Assert(m_commandParameters.Length == targetIqtArguments.Count, "m_commandParameters.Length == targetIqtArguments.Count"); 336Debug.Assert(errors.Count > 0, "errors.Count > 0"); 375Debug.Assert(errors.Count > 0, "errors.Count > 0");
System\Data\Mapping\StorageMappingItemCollection.ViewDictionary.cs (1)
100if(ObjectItemCollection.ViewGenerationAssemblies!=null && ObjectItemCollection.ViewGenerationAssemblies.Count>0)
System\Data\Mapping\StorageMappingItemLoader.cs (3)
464if (entitySetMapping.ModificationFunctionMappings.Count > 0) 558if (entitySetMapping.ModificationFunctionMappings.Count > 0) 650if (entitySetMapping.ModificationFunctionMappings.Count > 0)
System\Data\Mapping\Update\Internal\DynamicUpdateCommand.cs (2)
229List<DbModificationClause> result = new List<DbModificationClause>(originalClauses.Count); 230for (int idx = 0; idx < originalClauses.Count; idx++)
System\Data\Mapping\Update\Internal\FunctionMappingTranslator.cs (1)
680 < setMapping.ModificationFunctionMappings.Count, "set mapping must exist and must specify function mappings");
System\Data\Mapping\Update\Internal\Propagator.cs (1)
264PropagatorResult[] projectedValues = new PropagatorResult[projection.Arguments.Count];
System\Data\Mapping\Update\Internal\TableChangeProcessor.cs (2)
88int[] keyOrdinals = new int[keyMembers.Count]; 90for (int keyMemberIndex = 0; keyMemberIndex < keyMembers.Count; keyMemberIndex++)
System\Data\Mapping\Update\Internal\UpdateCommandOrderer.cs (1)
398PropagatorResult[] keyValues = new PropagatorResult[keyProperties.Count];
System\Data\Mapping\Update\Internal\ViewLoader.cs (1)
279if (0 < entitySetMapping.ModificationFunctionMappings.Count)
System\Data\Mapping\ViewGeneration\CqlGeneration\CqlBlock.cs (2)
271m_indexInParentQualifiers = parentQualifiers.Count; 282for (int i = m_parentQualifiers.Count - 1; i >= m_indexInParentQualifiers; --i)
System\Data\Mapping\ViewGeneration\DiscriminatorMap.cs (3)
103for (int i = 0; i < caseExpression.When.Count; i++) 198Debug.Assert(entityType.Properties.Count == constructor.Arguments.Count, "invalid new instance"); 273for (int i = 0; i < newX.Arguments.Count; i++)
System\Data\Mapping\ViewGeneration\Structures\TypeConstant.cs (2)
111for (int i = 0; i < keyMemberOutputPaths.Count; ++i) 131for (int i = 0; i < membersOutputPaths.Count; ++i)
System\Data\Metadata\Converter.cs (7)
322if (element.DeclaredKeyProperties.Count != 0) 324keyMembers = new string[element.DeclaredKeyProperties.Count]; 503for (int i = 0; i < element.Constraints.Count; i++) 578Debug.Assert(properties.Count != 0); 579EdmProperty[] result = new EdmProperty[properties.Count]; 581for (int i = 0; i < properties.Count; i++) 941Debug.Assert(somFunctionImport.ReturnTypeList == null || somFunctionImport.ReturnTypeList.Count == 1,
System\Data\Metadata\Edm\ReadOnlyMetadataCollection.cs (1)
91if ((uint)_nextIndex < (uint)_parent.Count)
System\Data\Metadata\ObjectItemCollection.cs (1)
312return entry.CacheEntry.TypesInAssembly.Count != 0;
System\Data\Metadata\ObjectLayer\ObjectItemAssemblyLoader.cs (1)
72if (cacheEntry.TypesInAssembly.Count != 0)
System\Data\Metadata\ObjectLayer\ObjectItemAttributeAssemblyLoader.cs (1)
163Debug.Assert(CacheEntry.TypesInAssembly.Count == 0);
System\Data\Metadata\ObjectLayer\ObjectItemConventionAssemblyLoader.cs (1)
73Debug.Assert(CacheEntry.ClosureAssemblies.Count == 0, "How did we get closure assemblies?");
System\Data\Metadata\Perspective.cs (3)
162if (overloads == null || overloads.Count == 0) 176if (overloads == null || overloads.Count == 0) 186functionOverloads = (overloads != null && overloads.Count > 0) ? overloads : null;
System\Data\Metadata\TypeHelpers.cs (1)
219if (-1 != index && index + 1 < promotableTypes.Count)
System\Data\Metadata\TypeSemantics.cs (1)
1161for (int i = 0; i < types1.Count; i++)
System\Data\Objects\DataClasses\RelatedEnd.cs (1)
620int keyMemberCount = keyMembers.Count;
System\Data\Objects\ELinq\ExpressionConverter.cs (1)
1512Debug.Assert(null != candidateFunctions && candidateFunctions.Count > 0, "provider functions must not be null or empty");
System\Data\Objects\ELinq\MethodCallTranslator.cs (3)
2250if (arguments.Count > 0) 2674if (lojLeft.Arguments.Count != 1 || lojLeft.Arguments[0].ExpressionKind != DbExpressionKind.Constant) 2937for (int i = 0; i < projection.Arguments.Count; ++i)
System\Data\Objects\Internal\EntitySqlQueryState.cs (1)
265Debug.Assert(lambda.Variables == null || lambda.Variables.Count == 0, "lambda.Variables must be empty");
System\Data\Objects\ObjectView.cs (1)
452get { return _viewData.List.Count; }
System\Data\Query\InternalTrees\ColumnMapFactory.cs (2)
238SimpleColumnMap[] keyColumns = new SimpleColumnMap[keyMembers.Count]; 301ScalarColumnMap[] discriminatorColumns = new ScalarColumnMap[discriminatorColumnNames.Count];
System\Data\Query\InternalTrees\Command.cs (14)
1602if (inputNodes.Count == 0) 1609int varPerNode = inputVars.Count / inputNodes.Count; 1610Debug.Assert((inputVars.Count % inputNodes.Count == 0) && (varPerNode >= 1), "Inconsistent nodes/vars count:" + inputNodes.Count + "," + inputVars.Count); 1612if (inputNodes.Count == 1) 1627for (int i = 1; i < inputNodes.Count; i++) 1658Debug.Assert(inputNodes.Count == inputVars.Count, "Count mismatch:" + inputNodes.Count + "," + inputVars.Count); 1661if (varList != null && varList.Count > 0)
System\Data\Query\PlanCompiler\AggregatePushdown.cs (5)
930for (int i = 0; i < groupByAncestors.Count; i++) 978int currentIndex1 = ancestors1.Count - 1; 979int currentIndex2 = ancestors2.Count - 1; 986for (int i = ancestors1.Count - 1; i > currentIndex1; i--) 990for (int i = ancestors2.Count - 1; i > currentIndex2; i--)
System\Data\Query\PlanCompiler\ITreeGenerator.cs (15)
163PlanCompiler.Assert(sources.Count == copies.Count, "Source/Copy Node count mismatch"); 173for (int idx = 0; idx < sources.Count; idx++) 599for(int idx = 0; idx < exprs.Count; idx++) 1065List<Node> argNodes = new List<Node>(e.Arguments.Count); 1066for (int idx = 0; idx < e.Arguments.Count; idx++) 1088var argNodes = new List<Tuple<Node, bool>>(arguments.Count); 1698for (int idx = 0; idx < e.When.Count; idx++) 2301for(int idx = 0; idx < inputs.Count; idx++) 2462for (int i = 0; i < e.Aggregates.Count; i++) 2497for(int idx = 0; idx < e.Aggregates.Count; idx++) 2592for (int idx = 0; idx < e.Keys.Count; idx++) 2772PlanCompiler.Assert(properties.Count != 0, "No nested properties for RowType"); 2774for (int i = 0; i < properties.Count; i++) 2824for (int idx = 0; idx < sortOrder.Count; idx++)
System\Data\Query\PlanCompiler\JoinGraph.cs (2)
2085for (int pos = 0; pos < parentVars.Count; pos++) 2149if (childColumnVars.Count > 1 && childColumnVars.Where(v => v.ColumnMetadata.IsNullable).Count() > 0)
System\Data\SqlClient\SqlGen\DmlSqlGenerator.cs (3)
40if (tree.SetClauses.Count == 0) 164if (0 < tree.SetClauses.Count) 205if (0 < tree.SetClauses.Count)
System\Data\SqlClient\SqlGen\Sql8ExpressionRewriter.cs (11)
137IList<DbPropertyExpression> sortExpressions = new List<DbPropertyExpression>(e.SortOrder.Count); 234Debug.Assert(leftFlattenedProperties.Count == rightFlattenedProperties.Count, "The left and the right input to INTERSECT or EXCEPT have a different number of properties"); 235Debug.Assert(leftFlattenedProperties.Count != 0, "The inputs to INTERSECT or EXCEPT have no properties"); 244for (int i = 0; i < leftFlattenedProperties.Count; i++) 301Debug.Assert(properties.Count != 0, "No nested properties when FlattenProperties called?"); 303for (int i = 0; i < properties.Count; i++) 340for (int i = list1.Count - 1; i >= 0; i--) 364for (int i=0; i<list.Count; i++) 424List<KeyValuePair<string, DbExpression>> projectColumns = new List<KeyValuePair<string, DbExpression>>(flattenedProperties.Count); 427Dictionary<string, int> columnNames = new Dictionary<string, int>(flattenedProperties.Count);
System\Data\SqlClient\SqlGen\SqlFunctionCallHandler.cs (23)
452if (functionExpression.Arguments.Count == 2) 458Debug.Assert(functionExpression.Arguments.Count == 1, "FromText function should have text or text + srid arguments only"); 479if (functionExpression.Arguments.Count == 2) 669Debug.Assert(!(isNiladicFunction && (0 < e.Arguments.Count)), "function attributed as NiladicFunction='true' in the provider manifest cannot have arguments"); 670if (isNiladicFunction && e.Arguments.Count > 0) 799Debug.Assert(!isPropertyAccess || functionExpression.Arguments.Count == 1, "Property accessor instance functions should have only the single instance argument"); 840Debug.Assert(e.Arguments.Count > 0 && e.Arguments.Count <= 2, "There should be 1 or 2 arguments for operator"); 842if (e.Arguments.Count > 1) 863result.Append(e.Arguments[e.Arguments.Count - 1].Accept(sqlgen)); 903Debug.Assert(e.Arguments.Count > 0, "e.Arguments.Count > 0"); 938for (int i = 1; i < e.Arguments.Count; i++) 989Debug.Assert(e.Arguments.Count == 1, "Canonical datepart functions should have exactly one argument"); 1108Debug.Assert(args.Count == (hasDatePart ? 3 : 0) + 3 + (hasTimeZonePart ? 1 : 0), "Invalid number of parameters for a date time creating function"); 1402if (e.Arguments.Count == 1) 1412Debug.Assert(e.Arguments.Count <= 2, "Round or truncate should have at most 2 arguments"); 1416if (e.Arguments.Count > 1) 1472Debug.Assert(e.Arguments.Count == 1, "Trim should have one argument"); 1555Debug.Assert(args.Count == 2, "Contains should have two arguments"); 1598Debug.Assert(args.Count == 2, "StartsWith should have two arguments"); 1642Debug.Assert(args.Count == 2, "EndsWith should have two arguments"); 1768for (int i = 0; i < e.Arguments.Count; i++) 1816for (int i = 0; i < e.Arguments.Count; i++)
System\Data\SqlClient\SqlGen\SqlGenerator.cs (11)
671Debug.Assert(e.When.Count == e.Then.Count); 674for (int i = 0; i < e.When.Count; ++i) 1515Debug.Assert(aggregate.Arguments.Count == 1); 2913Debug.Assert(e.Arguments.Count <= 1); 2915if (e.Arguments.Count == 1 && e.Arguments[0].ExpressionKind == DbExpressionKind.Element) 2942if (e.Arguments.Count == 0) 3043int inputCount = inputs.Count; 3264newColumns = new Dictionary<string, Symbol>(e.Arguments.Count); 3268for(int i = 0; i < e.Arguments.Count; ++i) 4257Debug.Assert(aggregate.Arguments.Count == 1);
System.Data.Entity.Design (16)
System\Data\Entity\Design\AspNet\EntityModelBuildProvider.cs (2)
78if (errors.Count == 0) 89if (errors != null && errors.Count > 0)
System\Data\Entity\Design\Common\MetadataItemSerializer.cs (1)
307for (int i = 0; i < properties.Count; i++)
System\Data\Entity\Design\Common\MetadataUtil.cs (1)
77int length = schemaErrors.Count;
System\Data\Entity\Design\EntityStoreSchemaGenerator.cs (9)
426if (errors.Count != 0) 1152Debug.Assert(columns.Count != 0, "Trying to create an EntityType with 0 properties"); 1165if (primaryKeys.Count == 0) 1167List<string> pKeys = new List<string>(columns.Count); 1187Debug.Assert(primaryKeys == null || primaryKeys.Count > 0,"There must be at least one key columns at this point in time"); 1219if (primaryKeys != null && excludedKeyColumns.Length < primaryKeys.Count) 1279Debug.Assert(columns.Count != 0, "Trying to create a RowType with 0 properties"); 1308Debug.Assert(columns.Count != 0, "columns.Count != 0"); 1468for (int i = 0; i < columns.Count; i++)
System\Data\Entity\Design\EntityStoreSchemaGenerator\EntityStoreSchemaGenerator.LoadMethodSessionState.cs (1)
185if (errors.Count != 0)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
277if (generatedViews.Count == 0 && schemaErrors.Count > 0)
System\Data\EntityModel\EntityClassGenerator.cs (1)
312Debug.Assert(readers.Count == schemas.Count, "We have a different number of readers than schemas");
System.Data.Linq (3)
DataContext.cs (3)
1676this.Inserts.Count, 1677this.Deletes.Count, 1678this.Updates.Count
System.Data.Services (19)
System\Data\Services\Epm\EpmContentSerializer.cs (2)
276Debug.Assert(node.Children.Count > 0, "If the property represented by the current node is not null, there must be children nodes."); 285Debug.Assert(node.Children.Count == 0, "If the property represented by the current node is not null, there must not be any children node.");
System\Data\Services\RequestQueryProcessor.cs (3)
898if (this.topLevelOrderingInfo.OrderingExpressions.Count != k.PositionalValues.Count) 900throw DataServiceException.CreateBadRequestError(Strings.DataService_SDP_SkipTokenNotMatchingOrdering(k.PositionalValues.Count, skipToken, this.topLevelOrderingInfo.OrderingExpressions.Count)); 934object[] convertedValues = new object[k.PositionalValues.Count];
System\Data\Services\Serializers\Serializer.cs (5)
372Debug.Assert(this.RequestDescription.SkipTokenProperties.Count > 0, "Must have some valid ordered properties in the skip token properties collection"); 741Debug.Assert(keyProperties.Count != 0, "every resource type must have a key"); 742for (int i = 0; i < keyProperties.Count; i++) 756if (keyProperties.Count != 1) 1234object[] values = new object[this.properties.Count];
System\Data\Services\UpdatableWrapper.cs (5)
156if (etagProperties.Count == 0) 331Debug.Assert(etagProperties != null && etagProperties.Count != 0, "There must be atleast one etag property specified"); 375if (keyInstance.PositionalValues.Count != etagProperties.Count) 382KeyValuePair<string, object>[] etagPropertyInfo = new KeyValuePair<string, object>[etagProperties.Count];
System\Data\Services\WebUtil.cs (4)
900Debug.Assert(etagProperties.Count != 0, "etagProperties.Count != 0"); 961if (etagProperties.Count != 0) 1072if (etagProperties.Count == 0) 1111if (etag == null && etagProperties.Count != 0)
System.Data.Services.Client (3)
System\Data\Services\Client\ALinq\ResourceBinder.cs (3)
312if (left.Count != right.Count) 317if (left.Count == 1)
System.Data.SqlXml (99)
System\Xml\Xsl\IlGen\StaticDataManager.cs (2)
115prefixMappings = new StringPair[list.Count]; 116for (int i = 0; i < list.Count; i++) {
System\Xml\Xsl\IlGen\XmlILOptimizerVisitor.cs (2)
4324for (int oldIdx = 0; oldIdx < globals.Count; oldIdx++) { 4349for (int oldIdx = globals.Count - 1; oldIdx >= newIdx; oldIdx--) {
System\Xml\Xsl\ListBase.cs (2)
214if (this.index > this.sequence.Count) 225if (this.index < this.sequence.Count) {
System\Xml\Xsl\QIL\QilNode.cs (1)
147for (int i = 0; i < list.Count; i++)
System\Xml\Xsl\QIL\QilPatternFactory.cs (1)
416switch(args.Count) {
System\Xml\Xsl\QIL\QilXmlWriter.cs (1)
194if (fdecls != null && fdecls.Count > 0) {
System\Xml\Xsl\Runtime\DodSequenceMerge.cs (3)
41if (sequence.Count == 0) 51this.nodeCount = this.firstSequence.Count; 55this.nodeCount += sequence.Count;
System\Xml\Xsl\Runtime\WhitespaceRuleLookup.cs (1)
40for (int i = rules.Count - 1; i >= 0; i--) {
System\Xml\Xsl\Runtime\XmlILStorageConverter.cs (2)
93XmlQueryNodeSequence seq = new XmlQueryNodeSequence(listItems.Count); 94for (int i = 0; i < listItems.Count; i++)
System\Xml\Xsl\Runtime\XmlQueryRuntime.cs (8)
88wsRules = (data.WhitespaceRules != null && data.WhitespaceRules.Count != 0) ? new WhitespaceRuleLookup(data.WhitespaceRules) : null; 492XPathNavigator[] navArray = new XPathNavigator[seq.Count]; 494for (int i = 0; i < seq.Count; i++) 511if (seq.Count == 1) { 668switch (seq.Count) { 678for (int i = 0; i < seq.Count; i++) { 697if (seq.Count != 1) 809if (seq.Count <= 1)
System\Xml\Xsl\Runtime\XmlQuerySequence.cs (2)
494public XmlQueryNodeSequence(IList<XPathNavigator> list) : base(list.Count) { 495for (int idx = 0; idx < list.Count; idx++)
System\Xml\Xsl\Runtime\XmlQueryStaticData.cs (1)
187dataWriter.Write(this.whitespaceRules.Count);
System\Xml\Xsl\Runtime\XslNumber.cs (3)
165if (val.Count == 1 && val[0].ValueType == typeof(double)) { 177for (int idx = 0; idx < val.Count; idx++) { 201int valCount = val.Count;
System\Xml\Xsl\Runtime\XsltConvert.cs (6)
91if (listItems.Count == 0) 129if (listItems.Count == 0) 162if (listItems.Count == 1) 180if (listItems.Count == 1) 208if (listItems.Count == 0) 332if (listItems.Count == 1) {
System\Xml\Xsl\Runtime\XsltFunctions.cs (2)
233if (value.Count != 1) { 266if (value.Count == 0) {
System\Xml\Xsl\Runtime\XsltLibrary.cs (8)
100string[] arr = new string[args.Count]; 307return CompareNumbers(op, (nodeset.Count != 0) ? 1 : 0, XsltConvert.ToBoolean(val) ? 1 : 0); 309int length = nodeset.Count; 320int leftLen = left.Count; 321int rightLen = right.Count; 434if (val.Count == 1) { 439int count = val.Count; 454if (val.Count == 1) {
System\Xml\Xsl\XPath\XPathBuilder.cs (11)
493case FuncId.LocalName : return args.Count == 0 ? f.LocalNameOf(GetCurrentNode()) : LocalNameOfFirstNode(args[0]); 494case FuncId.NamespaceUri : return args.Count == 0 ? f.NamespaceUriOf(GetCurrentNode()) : NamespaceOfFirstNode(args[0]); 495case FuncId.Name : return args.Count == 0 ? NameOf(GetCurrentNode()) : NameOfFirstNode(args[0]); 496case FuncId.String : return args.Count == 0 ? f.XPathNodeValue(GetCurrentNode()) : f.ConvertToString(args[0]); 497case FuncId.Number : return args.Count == 0 ? f.XsltConvert(f.XPathNodeValue(GetCurrentNode()), T.DoubleX) : f.ConvertToNumber(args[0]); 508return args.Count == 2 ? f.InvokeSubstring(args[0], args[1]) : f.InvokeSubstring(args[0], args[1], args[2]); 510return f.XsltConvert(f.StrLength(args.Count == 0 ? f.XPathNodeValue(GetCurrentNode()) : args[0]), T.DoubleX); 512return f.InvokeNormalizeSpace(args.Count == 0 ? f.XPathNodeValue(GetCurrentNode()) : args[0]); 894CheckArity(this.minArgs, this.maxArgs, name, args.Count); 899for (int i = 0; i < args.Count; i++) { 903for (int i = 0; i < args.Count; i++) {
System\Xml\Xsl\Xslt\QilGenerator.cs (14)
445for (int i = 0; i < tmpl.Content.Count; i++) { 604for (int i = from; i < instructions.Count; i++) { 664i = instructions.Count; 996for (int i = 0; i < content.Count; i++) { 1070if (content.Count > 0) { 1194for (int i = cases.Count - 1; 0 <= i; i--) { 1253} else if (content.Count != 0) { 1287while (i < content.Count) { 2112if (args.Count <= pos || args[pos].Name != name) { 2142if (actualArgs.Count != formalArgs.Count) { 2146for (int invArg = 0; invArg < formalArgs.Count; invArg++) { 2150for (int actArg = 0; actArg < actualArgs.Count; actArg++) { 2217for (int i = 0; i < actualArgs.Count; i++) {
System\Xml\Xsl\Xslt\QilGeneratorEnv.cs (19)
112case FuncId.Document : return CompileFnDocument(args[0], args.Count > 1 ? args[1] : null); 113case FuncId.FormatNumber : return CompileFormatNumber(args[0], args[1], args.Count > 2 ? args[2] : null); 115case FuncId.GenerateId : return CompileGenerateId(args.Count > 0 ? args[0] : env.GetCurrent()); 131FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 134FunctionInfo.CheckArity(/*minArg:*/2, /*maxArg:*/4, name, args.Count); 138/*lang: */2 < args.Count ? f.ConvertToString(args[2]) : f.String(string.Empty), 139/*options:*/3 < args.Count ? f.ConvertToString(args[3]) : f.String(string.Empty) 142FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 145FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/3, name, args.Count); 149/*format: */1 < args.Count ? f.ConvertToString(args[1]) : f.String(string.Empty), 150/*lang: */2 < args.Count ? f.ConvertToString(args[2]) : f.String(string.Empty), 154FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 157FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 160FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 167FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 170FunctionInfo.CheckArity(/*minArg:*/1, /*maxArg:*/1, name, args.Count); 178for (int i = 0; i < args.Count; i++) 182XmlExtensionFunction scrFunc = compiler.Scripts.ResolveFunction(name, ns, args.Count, (IErrorHelper)this); 200for (int i = 0; i < args.Count; i++) {
System\Xml\Xsl\Xslt\XPathPatternBuilder.cs (2)
267args.Count == 1 && args[0].NodeType == QilNodeType.LiteralString, 274args.Count == 2 &&
System\Xml\Xsl\Xslt\XslAstAnalyzer.cs (8)
434VarPar[] typeDonors = new VarPar[node.Content.Count]; 669if (node.Content.Count != 0) { 681} else if (node.Content.Count != 0) { 968if (args.Count == 0 && ( 984} else if (funcId == QilGenerator.FuncId.GenerateId && args.Count == 0) { 1012XmlExtensionFunction scrFunc = compiler.Scripts.ResolveFunction(name, ns, args.Count, new NullErrorHelper()); 1200int last = content.Count - 1; 1316Debug.Assert(parent.Content.Count == split + 1);
System.IdentityModel (66)
System\IdentityModel\Claims\DefaultClaimSet.cs (3)
46get { return this.claims.Count; } 59for (int i = 0; i < this.claims.Count; ++i) 74for (int i = 0; i < this.claims.Count; ++i)
System\IdentityModel\Claims\WindowsClaimSet.cs (2)
90return this.claims.Count; 242for (int i = 0; i < this.claims.Count; ++i)
System\IdentityModel\Claims\X509CertificateClaimSet.cs (2)
68return this.claims.Count; 265for (int i = 0; i < this.claims.Count; ++i)
System\IdentityModel\Metadata\MetadataSerializer.cs (13)
561if (resultEntityGroup.ChildEntityGroups.Count == 0 && resultEntityGroup.ChildEntities.Count == 0) 2166if (entitiesDescriptor.ChildEntities.Count == 0 && entitiesDescriptor.ChildEntityGroups.Count == 0) 2273if (entityDescriptor.RoleDescriptors.Count == 0) 2362if (identityProviderSingleSignOnDescriptor.SingleSignOnServices.Count == 0) 2484if (keyDescriptor.EncryptionMethods != null && keyDescriptor.EncryptionMethods.Count > 0) 2777if (roleDescriptor.ProtocolsSupported.Count == 0) 3016if (singleSignOnDescriptor.NameIdentifierFormats != null && singleSignOnDescriptor.NameIdentifierFormats.Count > 0) 3103if (wsDescriptor.TokenTypesOffered.Count > 0) 3121if (wsDescriptor.ClaimTypesOffered.Count > 0) 3132if (wsDescriptor.ClaimTypesRequested.Count > 0) 3143if (wsDescriptor.TargetScopes.Count > 0)
System\IdentityModel\SecurityUtils.cs (4)
362if (authorizationPolicies != null && authorizationPolicies.Count == 1 && authorizationPolicies[0] is UnconditionalPolicy) 367else if (authorizationPolicies == null || authorizationPolicies.Count <= 0) 375object[] policyState = new object[authorizationPolicies.Count]; 383for (int i = 0; i < authorizationPolicies.Count; i++)
System\IdentityModel\Selectors\SamlSecurityTokenAuthenticator.cs (5)
34this.supportingAuthenticators = new List<SecurityTokenAuthenticator>(supportingAuthenticators.Count); 35for (int i = 0; i < supportingAuthenticators.Count; ++i) 98for (int i = 0; i < samlToken.Assertion.Statements.Count; ++i) 119for (int i = 0; i < samlToken.Assertion.Conditions.Conditions.Count; i++) 142for (int i = 0; i < audienceRestrictionCondition.Audiences.Count; i++)
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
1156if (collectedAttributes.Count > 0) 1173Dictionary<SamlAttributeKeyComparer.AttributeKey, Saml2Attribute> distinctAttributes = new Dictionary<SamlAttributeKeyComparer.AttributeKey, Saml2Attribute>(attributes.Count, new SamlAttributeKeyComparer());
System\IdentityModel\Tokens\SamlSecurityTokenHandler.cs (26)
458if (collectedAttributes.Count > 0) 475Dictionary<SamlAttributeKeyComparer.AttributeKey, SamlAttribute> distinctAttributes = new Dictionary<SamlAttributeKeyComparer.AttributeKey, SamlAttribute>(attributes.Count, new SamlAttributeKeyComparer()); 1289for (int k = 0; k < attr.AttributeValues.Count; ++k) 1433if (subject == null || attribute == null || attribute.AttributeValues == null || attribute.AttributeValues.Count < 1) 1477for (int k = 0; k < innerAttribute.AttributeValues.Count; ++k) 1701if (advice.AssertionIdReferences.Count > 0) 1713if (advice.Assertions.Count > 0) 1826if (assertion.Statements.Count == 0) 1898for (int i = 0; i < assertion.Statements.Count; i++) 2001for (int i = 0; i < conditions.Conditions.Count; i++) 2111if (audienceRestrictionCondition.Audiences.Count == 0) 2141if (condition.Audiences == null || condition.Audiences.Count == 0) 2149for (int i = 0; i < condition.Audiences.Count; i++) 2345if (subject.ConfirmationMethods.Count == 0) 2374if ((subject.ConfirmationMethods.Count == 0) && (string.IsNullOrEmpty(subject.Name))) 2423if (subject.ConfirmationMethods.Count > 0) 2544if (attributeStatement.Attributes.Count == 0) 2578for (int i = 0; i < statement.Attributes.Count; i++) 2676if (attribute.AttributeValues.Count == 0) 2797for (int i = 0; i < attribute.AttributeValues.Count; i++) 2965for (int i = 0; i < statement.AuthorityBindings.Count; i++) 3209if (authzStatement.SamlActions.Count == 0) 3298if ((evidence.AssertionIdReferences.Count == 0) && (evidence.Assertions.Count == 0)) 3329for (int i = 0; i < evidence.AssertionIdReferences.Count; i++) 3334for (int i = 0; i < evidence.Assertions.Count; i++)
System\IdentityModel\Tokens\SamlSecurityTokenRequirement.cs (3)
340if (0 == tokenAudiences.Count) 346if (0 == allowedAudienceUris.Count) 384if (1 == tokenAudiences.Count || null != tokenAudiences[0])
System\IdentityModel\Tokens\SessionSecurityToken.cs (2)
1446if (claim.Properties != null && claim.Properties.Count > 0) 1479if (properties.Count > 0)
System\IdentityModel\Tokens\WSSecurityJan2004.cs (3)
251for (int i = 0; i < this.strEntries.Count; ++i) 276for (int i = 0; i < this.strEntries.Count; ++i) 288for (int i = 0; i < this.strEntries.Count; ++i)
System\IdentityModel\Tokens\WSSecurityXXX2005.cs (1)
70for (int i = 0; i < this.StrEntries.Count; ++i)
System.IO.Log (10)
System\IO\Log\AppendHelper.cs (3)
32this.blobs = new UnmanagedBlob[data.Count + 1]; 33this.handles = new GCHandle[data.Count + 1]; 41for (int i = 0; i < data.Count; i++)
System\IO\Log\FileRecordSequence.cs (2)
207for (int i = 0; i < data.Count; i++) 726for (int i = 0; i < data.Count; i++)
System\IO\Log\LogRecordSequence.cs (1)
1004for (int i = 0; i < data.Count; i++)
System\IO\Log\LogReserveAndAppendState.cs (3)
451pinnedObjectCount += this.data.Count; 455int writeEntryCount = this.data.Count + 1; // Header 485for (int i = 0; i < this.data.Count; i++)
System\IO\Log\LogWriteRestartAreaState.cs (1)
378for (int i = 0; i < this.data.Count; i++)
System.Runtime.Caching (2)
System\Caching\HostFileChangeMonitor.cs (2)
135if (filePaths.Count == 0) { 148List<string> newList = new List<string>(filePaths.Count);
System.Runtime.DurableInstancing (15)
System\Runtime\DurableInstancing\InstanceKey.cs (1)
136if (this.Metadata.Count == 0)
System\Runtime\DurableInstancing\InstanceOwnerQueryResult.cs (1)
43Dictionary<Guid, IDictionary<XName, InstanceValue>> owners = new Dictionary<Guid, IDictionary<XName, InstanceValue>>(instanceOwners.Count);
System\Runtime\DurableInstancing\InstancePersistence.cs (4)
83if (bag != null && bag.Count > 0) 85Dictionary<XName, InstanceValue> copy = new Dictionary<XName, InstanceValue>(bag.Count); 110if (bag != null && bag.Count > 0) 112Dictionary<XName, InstanceValue> copy = existing == null ? new Dictionary<XName, InstanceValue>(bag.Count) : new Dictionary<XName, InstanceValue>(existing);
System\Runtime\DurableInstancing\InstancePersistenceContext.cs (6)
294if (instanceData != null && instanceData.Count > 0) 301if (associatedInstanceKeyMetadata != null && associatedInstanceKeyMetadata.Count > 0) 319int totalKeys = (associatedInstanceKeyMetadata != null ? associatedInstanceKeyMetadata.Count : 0) + (completedInstanceKeyMetadata != null ? completedInstanceKeyMetadata.Count : 0); 324if (associatedInstanceKeyMetadata != null && associatedInstanceKeyMetadata.Count > 0) 336if (completedInstanceKeyMetadata != null && completedInstanceKeyMetadata.Count > 0)
System\Runtime\DurableInstancing\InstanceView.cs (2)
80if (source.InstanceKeys.Count > 0) 82keys = new Dictionary<Guid, InstanceKeyView>(source.InstanceKeys.Count);
System\Runtime\PersistencePipeline.cs (1)
298return Keys.Count;
System.Runtime.Serialization (24)
System\Runtime\Serialization\CodeExporter.cs (3)
718DataContract[] paramContracts = new DataContract[genInfo.Parameters.Count]; 719for (int i = 0; i < genInfo.Parameters.Count; i++) 927if (knownTypeContracts == null || knownTypeContracts.Count == 0)
System\Runtime\Serialization\DataContract.cs (3)
1686else if (nestedParamCounts.Count > 1 || !parametersFromBuiltInNamespaces) 1898if (nestedParamCounts.Count > 1 || !parametersFromBuiltInNamespaces) 1991if (nestedParameterCounts.Count > 1 || !genericNameProvider.ParametersFromBuiltInNamespaces)
System\Runtime\Serialization\ExtensionDataReader.cs (6)
550if (dataNode.Members != null && element.childElementIndex < dataNode.Members.Count) 553this.context.IncrementItemCount(-dataNode.Members.Count); 567if (dataNode.Items != null && element.childElementIndex < dataNode.Items.Count) 570this.context.IncrementItemCount(-dataNode.Items.Count); 584if (dataNode.Members != null && element.childElementIndex < dataNode.Members.Count) 587this.context.IncrementItemCount(-dataNode.Members.Count);
System\Runtime\Serialization\SchemaExporter.cs (1)
333typeNestedLevelsAttribute.Value = genericArgumentCounts.Count.ToString(CultureInfo.InvariantCulture);
System\Runtime\Serialization\XmlObjectSerializerContext.cs (1)
241for (int i = 0; i < knownTypeList.Count; i++)
System\Runtime\Serialization\XmlObjectSerializerReadContext.cs (5)
848else if (dataNode.Size != dataNode.Items.Count) 849throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(XmlObjectSerializer.CreateSerializationException(SR.GetString(SR.ArraySizeAttributeIncorrect, arraySize, dataNode.Items.Count))); 855dataNode.Size = dataNode.Items.Count; 1053for (int i = 0; i < xmlAttributes.Count; i++) 1058for (int i = 0; i < xmlChildNodes.Count; i++)
System\Runtime\Serialization\XmlObjectSerializerWriteContext.cs (5)
421IncrementCollectionCount(xmlWriter, collection.Count); 560for (int i = 0; i < extensionData.Members.Count; i++) 648for (int i = 0; i < members.Count; i++) 667for (int i = 0; i < items.Count; i++) 689for (int i = 0; i < members.Count; i++)
System.ServiceModel (178)
System\ServiceModel\Administration\ServiceInstanceProvider.cs (1)
110channelsCount += instanceContext.WmiChannels.Count;
System\ServiceModel\Channels\AddressHeaderCollection.cs (1)
35for (int i = 0; i < collection.Count; i++)
System\ServiceModel\Channels\BinaryMessageEncoder.cs (2)
485for (int i = 0; i < newStrings.Count; i++) 515for (int i = 0; i < newStrings.Count; i++)
System\ServiceModel\Channels\ClientContextProtocol.cs (1)
251if (contextMessageProperty.Context.Count == 0)
System\ServiceModel\Channels\CloseCollectionAsyncResult.cs (2)
24count = collection.Count; 31for (int index = 0; index < collection.Count; index++)
System\ServiceModel\Channels\ContextBindingElementImporter.cs (1)
69if (unrecognized.BindingAsserions.Count == 0)
System\ServiceModel\Channels\ContextDictionary.cs (1)
64get { return this.dictionaryStore.Count; }
System\ServiceModel\Channels\ContextProtocol.cs (1)
51if (context.Context.Count > 0)
System\ServiceModel\Channels\CorrelationCallbackMessageProperty.cs (1)
24if (neededData.Count > 0)
System\ServiceModel\Channels\CorrelationDataMessageProperty.cs (1)
21if (dataProviders != null && dataProviders.Count > 0)
System\ServiceModel\Channels\CorrelationMessageProperty.cs (2)
44if (additionalKeysCollection != null && additionalKeysCollection.Count == 0) 63if (transientCorrelations == null || (transientCorrelationsCollection != null && transientCorrelationsCollection.Count == 0))
System\ServiceModel\Channels\MsmqChannelListenerBase.cs (1)
143for (int i = 0; i < foundTransportManagers.Count; i++)
System\ServiceModel\Channels\OpenCollectionAsyncResult.cs (2)
25count = collection.Count; 32for (int index = 0; index < collection.Count; index++)
System\ServiceModel\Channels\PeerUnsafeNativeMethods.cs (1)
227int count = addresses.Count;
System\ServiceModel\Channels\SecurityBindingElement.cs (2)
2402if (binding.OperationSupportingTokenParameters.Count == 0 && binding.OptionalOperationSupportingTokenParameters.Count == 0)
System\ServiceModel\Channels\SecurityChannelListener.cs (1)
195if (this.SecurityProtocolFactory != null && this.securityProtocolFactory.ChannelSupportingTokenAuthenticatorSpecification.Count > 0)
System\ServiceModel\Channels\TransactionChannel.cs (1)
116if (issuances != null && issuances.Count != 0)
System\ServiceModel\Channels\TransportManager.cs (3)
190for (int i = 0; i < source.transportManagers.Count; i++) 203if (source.transportManagers.Count > 0) 244for (int i = 0; i < foundTransportManagers.Count; i++)
System\ServiceModel\Configuration\SecurityElementBase.cs (3)
495if (b1.OperationSupportingTokenParameters.Count != b2.OperationSupportingTokenParameters.Count) 577if (sbe.OperationSupportingTokenParameters.Count > 0)
System\ServiceModel\Configuration\UnrecognizedPolicyAssertionElement.cs (3)
60if (writer != null && this.bindingAsserions != null && this.bindingAsserions.Count > 0) 72if (this.operationAssertions == null || this.operationAssertions.Count == 0) 84if (this.messageAssertions == null || this.messageAssertions.Count == 0)
System\ServiceModel\Description\DispatcherBuilder.cs (1)
627if (serviceHost.ImplementedContracts != null && serviceHost.ImplementedContracts.Count > 0)
System\ServiceModel\Description\ServiceCredentials.cs (1)
252if (this.IssuedTokenAuthentication != null && this.IssuedTokenAuthentication.KnownCertificates != null && this.IssuedTokenAuthentication.KnownCertificates.Count > 0)
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
507(UpdatePortsByScheme == null || UpdatePortsByScheme.Count == 0))
System\ServiceModel\Description\WsdlExporter.cs (4)
736if (assertions.Count > 0) 754if (assertions.Count > 0) 772if (assertions.Count > 0) 787if (assertions.Count > 0)
System\ServiceModel\Diagnostics\WsrmTraceRecord.cs (1)
108for (int i = 0; i < this.ranges.Count; i++)
System\ServiceModel\Dispatcher\ActionMessageFilterTable.cs (8)
348int count = results.Count; 350return count != results.Count; 368int count = results.Count; 370return count != results.Count; 390int count = results.Count; 392return count != results.Count; 410int count = results.Count; 412return count != results.Count;
System\ServiceModel\Dispatcher\AndMessageFilterTable.cs (8)
369int count = results.Count; 371return count != results.Count; 386int count = results.Count; 388return count != results.Count; 403int count = results.Count; 405return count != results.Count; 420int count = results.Count; 422return count != results.Count;
System\ServiceModel\Dispatcher\EndpointAddressMessageFilterTable.cs (8)
546int count = results.Count; 548return count != results.Count; 566int count = results.Count; 568return count != results.Count; 634int count = results.Count; 636return count != results.Count; 654int count = results.Count; 656return count != results.Count;
System\ServiceModel\Dispatcher\FaultFormatter.cs (1)
116for (int i = 0; i < faultInfos.Count; i++)
System\ServiceModel\Dispatcher\MessageFilter.cs (8)
131int count = results.Count; 139return count != results.Count; 144int count = results.Count; 152return count != results.Count; 201int count = results.Count; 209return count != results.Count; 214int count = results.Count; 222return count != results.Count;
System\ServiceModel\Dispatcher\MessageFilterTable.cs (13)
409int count = results.Count; 414if (pri > this.tables[i].priority && count != results.Count) 422return count != results.Count; 431int count = results.Count; 436if (pri > this.tables[i].priority && count != results.Count) 444return count != results.Count; 519int count = results.Count; 524if (pri > this.tables[i].priority && count != results.Count) 532return count != results.Count; 541int count = results.Count; 546if (pri > this.tables[i].priority && count != results.Count) 554return count != results.Count; 563if (this.tables[i].table.Count == 0)
System\ServiceModel\Dispatcher\XmlSerializerFaultFormatter.cs (1)
91for (int i = 0; i < faultInfos.Count; i++)
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
507object[] messageHeaderOfTArray = (object[])Array.CreateInstance(TypedHeaderManager.GetMessageHeaderType(headerDescription.Type), messageHeaderOfTAttributes.Count);
System\ServiceModel\Dispatcher\XPathMessageFilterTable.cs (16)
390int count = results.Count; 392return count != results.Count; 410int count = results.Count; 412return count != results.Count; 430int count = results.Count; 432return count != results.Count; 450int count = results.Count; 452return count != results.Count; 470int count = results.Count; 472return count != results.Count; 490int count = results.Count; 492return count != results.Count; 510int count = results.Count; 512return count != results.Count; 530int count = results.Count; 532return count != results.Count;
System\ServiceModel\EmptyArray.cs (2)
38if (collection.Count == 0) 44T[] array = new T[collection.Count];
System\ServiceModel\Security\AcceptorSessionSymmetricTransportSecurityProtocol.cs (1)
91if (supportingAuthenticators != null && supportingAuthenticators.Count > 0)
System\ServiceModel\Security\FederatedSecurityTokenManager.cs (2)
426if ( ( base.ServiceCredentials.IssuedTokenAuthentication.KnownCertificates != null ) && ( base.ServiceCredentials.IssuedTokenAuthentication.KnownCertificates.Count > 0 ) ) 428for ( int i = 0; i < base.ServiceCredentials.IssuedTokenAuthentication.KnownCertificates.Count; ++i )
System\ServiceModel\Security\ReceiveSecurityHeader.cs (7)
776for (int i = 0; i < this.outOfBandPrimaryTokenCollection.Count; ++i) 817if (this.supportingTokenAuthenticators != null && this.supportingTokenAuthenticators.Count > 0) 819this.supportingTokenTrackers = new List<TokenTracker>(this.supportingTokenAuthenticators.Count); 820for (int i = 0; i < this.supportingTokenAuthenticators.Count; ++i) 1498for (int i = 0; i < this.supportingTokenAuthenticators.Count; ++i) 1612for (int i = 0; i < this.outOfBandPrimaryTokenCollection.Count; ++i) 1755for (int i = 0; i < allowedTokenAuthenticators.Count; ++i)
System\ServiceModel\Security\SctClaimSerializer.cs (2)
408if (identities != null && identities.Count > 0) 411for (int i = 0; i < identities.Count; ++i)
System\ServiceModel\Security\SecurityProtocol.cs (11)
331if (scopedProviders == null || scopedProviders.Count == 0) 406if (this.channelSupportingTokenProviderSpecification.Count == 0) 505if (tokens == null || tokens.Count == 0) 509for (int i = 0; i < tokens.Count; ++i) 587if (supportingTokenProviders != null && supportingTokenProviders.Count > 0) 596for (int i = 0; i < supportingTokenProviders.Count; ++i) 646if (supportingAuthenticators != null && supportingAuthenticators.Count > 0) 648for (int i = 0; i < supportingAuthenticators.Count; ++i) 679for (int i = 0; i < supportingTokens.Count; ++i) 928while (this.currentTokenProviderIndex < supportingTokenProviders.Count) 962if (!(this.supportingTokenProviders != null && this.supportingTokenProviders.Count > 0))
System\ServiceModel\Security\SecurityProtocolFactory.cs (2)
827if (scopedAuthenticators == null || scopedAuthenticators.Count == 0) 1025if (this.channelSupportingTokenAuthenticatorSpecification.Count == 0)
System\ServiceModel\Security\ServiceCredentialsSecurityTokenManager.cs (3)
258if ((parent.IssuedTokenAuthentication.KnownCertificates != null) && (parent.IssuedTokenAuthentication.KnownCertificates.Count > 0)) 260for (int i = 0; i < parent.IssuedTokenAuthentication.KnownCertificates.Count; ++i) 292for (int i = 0; i < parent.IssuedTokenAuthentication.AllowedAudienceUris.Count; i++)
System\ServiceModel\Security\Tokens\SecurityContextCookieSerializer.cs (1)
282for (int i = 0; i < this.claimSets.Count; ++i)
System\ServiceModel\ServiceChannelManager.cs (1)
78if ((outgoing != null) && (outgoing.Count > 0))
System\ServiceModel\ServiceSecurityContext.cs (2)
122if (identities != null && identities.Count == 1) 143for (int i = 0; i < identities.Count; ++i)
System\ServiceModel\SynchronizedReadOnlyCollection.cs (1)
74get { lock (this.sync) { return this.items.Count; } }
System\ServiceModel\Syndication\SyndicationElementExtensionCollection.cs (2)
41for (int i = 0; i < source.Items.Count; ++i) 151for (int i = 0; i < this.Items.Count; ++i)
System\ServiceModel\Syndication\SyndicationFeed.cs (1)
107for (int i = 0; i < srcList.Count; ++i)
System\UriTemplate.cs (4)
208if (additionalDefaults.Count > 0) 243this.additionalDefaults = new Dictionary<string, string>(additionalDefaults.Count, StringComparer.OrdinalIgnoreCase); 933if (extraParameters.Count == 0) 1651if (extraParameters.Count == 0)
System\UriTemplateTable.cs (10)
182for (int i = 0; i < candidates.Count; i++) 196for (int i = 0; i < candidates.Count; i++) 226for (int i = 0; i < candidates.Count; i++) 253for (int i = 0; i < candidates.Count; i++) 296for (int i = 0; i < candidates.Count; i++) 309for (int i = 0; i < candidates.Count; i++) 329if (candidates.Count <= 1) 335for (int i = 0; i < candidates.Count; i++) 519if (fastPathCandidates.Count != slowPathCandidates.Count) 523for (int i = 0; i < fastPathCandidates.Count; i++)
System\UriTemplateTrieNode.cs (23)
138for (int i = 0; ((i < locationsSet.Count) && !result); i++) 140for (int j = 0; j < locationsSet[i].Count; j++) 308Fx.Assert(compoundPathEquivalentSets.Count >= 1, "Lookup is expected to return false otherwise"); 309Fx.Assert(compoundPathEquivalentSets[0].Count > 0, "Find shouldn't return empty sublists"); 310if (compoundPathEquivalentSets[0].Count == 1) 317for (int i = 0; i < compoundPathEquivalentSets[0].Count; i++) 348Fx.Assert(locationsSet.Count > 0, "Shouldn't be called on empty set"); 350Fx.Assert(locationsSet[0].Count > 0, "Shouldn't be called on a set with empty sub-lists"); 379for (int i = 0; i < pesLists.Count; i++) 381if (!allowDuplicateEquivalentUriTemplates && (pesLists[i].Count > 1)) 386for (int j = 0; j < pesLists[i].Count; j++) 407for (int i = 0; i < locations.Count; i++) 409if (!allowDuplicateEquivalentUriTemplates && (locations[i].Count > 1)) 418for (int j = 0; j < locations[i].Count; j++) 684for (int i = 0; i < this.items.Values.Count; i++) 687Fx.Assert(results.Count == i + 1, "We are adding item for each values collection"); 691Fx.Assert(results[i].Count == j + 1, "We are adding item for each value in the collection"); 693Fx.Assert(results[i].Count == this.items.Values[i].Count, "We were supposed to add an item for each value in the collection"); 695Fx.Assert(results.Count == this.items.Values.Count, "We were supposed to add a sub-list for each values collection"); 736for (int i = 0; i < this.items.Values.Count; i++) 760if (this.items.Values.Count > 0) 775return ((results != null) && (results.Count > 0));
System.ServiceModel.Activities (29)
System\ServiceModel\Activities\Description\CorrelationQueryBehavior.cs (2)
74if (this.queries.Count > 0) 209if (this.queries.Count <= 0)
System\ServiceModel\Activities\Dispatcher\DurableInstanceManager.cs (1)
1200if (this.additionalKeys != null && this.additionalKeys.Count > 0)
System\ServiceModel\Activities\Dispatcher\PersistenceProviderDirectory.cs (2)
535InstanceKey lookupKeyToAdd = (canCreateInstance && key.Metadata != null && key.Metadata.Count > 0) ? key : null; 765if (this.associatedKeys != null && this.associatedKeys.Count == 0)
System\ServiceModel\Activities\Dispatcher\WorkflowServiceInstance.cs (1)
2912Fx.Assert(associatedKeys != null && associatedKeys.Count > 0, "Must have associatedKeys!");
System\ServiceModel\Activities\InternalReceiveMessage.cs (1)
722if (receiveMessageCallbacks != null && receiveMessageCallbacks.Count > 0)
System\ServiceModel\Activities\InternalSendMessage.cs (9)
343|| this.ReplyCorrelationQueries.Count > 0) 991if (correlationBehavior.SendNames != null && correlationBehavior.SendNames.Count > 0) 993if (correlationBehavior.SendNames.Count == 1 && (correlationBehavior.SendNames.Contains(ContextExchangeCorrelationHelper.CorrelationName))) 2535if (correlationBehavior.SendNames != null && correlationBehavior.SendNames.Count > 0) 3203return (right == null || right.Count == 0); 3207return left.Count == 0; 3209if (left.Count != right.Count) 3213for (int i = 0; i < left.Count; i++)
System\ServiceModel\Activities\MessagingActivityHelper.cs (2)
224context1.Count != context2.Count)
System\ServiceModel\Activities\Receive.cs (4)
268return this.followingReplies != null && this.followingReplies.Count > 0; 276return this.followingFaults != null && this.followingFaults.Count > 0; 449for (int i = 0; i < this.followingReplies.Count; i++) 457for (int i = 0; i < this.followingFaults.Count; i++)
System\ServiceModel\Activities\ReceiveParametersContent.cs (1)
72int argumentCount = this.Parameters.Count;
System\ServiceModel\Activities\SendParametersContent.cs (1)
88int argumentCount = this.Parameters.Count;
System\ServiceModel\Activities\SerializableInstanceKey.cs (3)
25this.metadata = new Dictionary<XName, SerializableInstanceValue>(instanceKey.Metadata.Count); 54if (this.metadata == null || this.metadata.Count == 0) 75metadata = new Dictionary<XName, InstanceValue>(this.metadata.Count);
System\ServiceModel\Activities\WorkflowDefinitionProvider.cs (1)
207return this.workflowDefinitionProvider.definitionCollection.Count;
System\ServiceModel\Activities\WorkflowService.cs (1)
1100if (parentChain.Count > 0)
System.ServiceModel.Discovery (2)
System\ServiceModel\Discovery\ScopeCompiler.cs (2)
16if (scopes == null || scopes.Count == 0) 34if (scopes == null || scopes.Count == 0)
System.ServiceModel.Internals (7)
System\Runtime\Collections\NullableKeyDictionary.cs (6)
27get { return this.innerDictionary.Count + (this.isNullKeyPresent ? 1 : 0); } 176array[arrayIndex + this.innerDictionary.Count] = new KeyValuePair<TKey, TValue>(default(TKey), this.nullKeyValue); 234int count = this.nullKeyDictionary.innerDictionary.Keys.Count; 268array[arrayIndex + this.nullKeyDictionary.innerDictionary.Keys.Count] = default(TypeKey); 309int count = this.nullKeyDictionary.innerDictionary.Values.Count; 344array[arrayIndex + this.nullKeyDictionary.innerDictionary.Values.Count] = this.nullKeyDictionary.nullKeyValue;
System\Runtime\ReadOnlyDictionaryInternal.cs (1)
24get { return this.dictionary.Count; }
System.ServiceModel.Routing (13)
System\ServiceModel\Dispatcher\StrictAndMessageFilter.cs (4)
119return (matchingFilters.Count > 0); 139return (matchingFilters.Count > 0); 191return (matchingFilters.Count > 0); 211return (matchingFilters.Count > 0);
System\ServiceModel\Routing\ProcessMessagesAsyncResult.cs (9)
62this.sessionMessageIndex = this.service.SessionMessages.Count - 1; 158this.MoveToNextClientOperation(messageRpc.Operations.Count); 175if (messageRpc.Operations.Count == 1 && sendOperation.AlternateEndpointCount == 0) 294MoveToNextClientOperation(messageRpc.Operations.Count); 312if (++this.sessionMessageIndex >= this.service.SessionMessages.Count) 571this.MoveToNextClientOperation(messageRpc.Operations.Count); 597if (this.service.SessionMessages.Count == 0) 606for (this.destinationIndex = 0; this.destinationIndex < messageRpc.Operations.Count; this.destinationIndex++) 699if (++this.sessionMessageIndex >= this.service.SessionMessages.Count)
System.ServiceModel.Web (9)
System\ServiceModel\Dispatcher\FormatSelectingMessageInspector.cs (1)
121for (int i = 0; i < acceptHeaderElements.Count; i++)
System\ServiceModel\Dispatcher\SingleBodyParameterMessageFormatter.cs (1)
232for (int i = 0; i < knownTypes.Count; ++i)
System\ServiceModel\Dispatcher\UnwrappedTypesXmlSerializerManager.cs (2)
49for (int i = 0; i < operationTypes.Count; ++i) 77for (int i = 0; i < types.Count; ++i)
System\ServiceModel\Web\AutomaticEndpointGenerator.cs (2)
97if (this.implementedContracts.Count > 1) 101else if (this.implementedContracts.Count == 0)
System\ServiceModel\Web\WebServiceHost.cs (2)
104if (implementedContracts.Count > 1) 108else if (implementedContracts.Count == 0)
System\ServiceModel\WebScriptServiceHost.cs (1)
29SR2.GetString(SR2.JsonWebScriptServiceHostOneServiceContract, this.ImplementedContracts.Count),
System.Web (31)
Compilation\AssemblyResolver.cs (8)
78int count = paths.Count; 91bool missing35assemblies = MultiTargetingUtil.IsTargetFramework35 && (assemblyPaths30.Count == count || assemblyPaths20.Count == count); 371if (TargetFrameworkReferenceAssemblyPaths == null || TargetFrameworkReferenceAssemblyPaths.Count == 0) { 422if (result.ResolvedFiles != null && result.ResolvedFiles.Count > 0) { 431if (result.ResolvedFiles != null && result.ResolvedFiles.Count > 0) { 443if (result.ResolvedFiles != null && result.ResolvedFiles.Count > 0) { 495if (r.ResolvedFiles != null && r.ResolvedFiles.Count > 0) {
Compilation\CompilationUtil.cs (2)
264if (providerOptions != null && providerOptions.Count > 0) { 511if (providerOptions != null && providerOptions.Count > 0) {
Hosting\SuspendManager.cs (2)
63if (allRegisteredObjects.Count > 0) { 120_resumeCallbacks = new List<Action>(suspendibleObjects.Count);
Routing\ParsedRoute.cs (12)
161for (int i = 0; i < PathSegments.Count; i++) { 339for (int i = 0; i < pathSegments.Count; i++) { 430for (int i = 0; i < PathSegments.Count; i++) { 433if (requestPathSegments.Count <= i) { 453Debug.Assert(i == (PathSegments.Count - 1), "If we're processing a catch-all, we should be on the last route segment."); 470if (PathSegments.Count < requestPathSegments.Count) { 473for (int i = PathSegments.Count; i < requestPathSegments.Count; i++) { 513if (routeSegment.Subsegments.Count > 1) { 539int indexOfLastSegmentUsed = routeSegment.Subsegments.Count - 1; 576if (indexOfLastSegmentUsed == (routeSegment.Subsegments.Count - 1)) {
Routing\RouteParser.cs (3)
86Debug.Assert(urlParts.Count == pathSegments.Count, "The number of string segments should be the same as the number of path segments"); 327if (segmentContainsCatchAll && (pathSubsegments.Count != 1)) {
Security\Cryptography\Purpose.cs (2)
97if (specificPurposes == null || specificPurposes.Count == 0) { 102string[] newSpecificPurposes = new string[SpecificPurposes.Length + specificPurposes.Count];
UI\TemplateControl.cs (2)
954return (AsyncEvents.Count == 0 && SyncEvents.Count == 0);
System.Web.DataVisualization (4)
Common\Formulas\FormulaHelpers.cs (4)
1461for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1512if (id - 1 < seriesFields.Count) 1553for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1602if (seriesFieldIndex < seriesFields.Count)
System.Web.DynamicData (6)
DynamicData\ControlFilterExpression.cs (1)
123Debug.Assert(names.Count == columns.Count);
DynamicData\MetaChildrenColumn.cs (1)
112Debug.Assert(fkColumn.ForeignKeyNames.Count == pkValues.Count);
DynamicData\QueryStringHandler.cs (1)
39if (parameters.Count == 0) {
DynamicData\Util\Misc.cs (3)
173if (list == null || list.Count == 0) 175if (list.Count == 1) { 205object[] values = new object[keyMembers.Count];
System.Web.Extensions (18)
Profile\ProfileService.cs (1)
81if (values == null || values.Count == 0) {
Script\Serialization\JavaScriptObjectDeserializer.cs (1)
154ThrowIfMaxJsonDeserializerMembersExceeded(dictionary.Count);
Script\Services\ClientProxyGenerator.cs (1)
31if (webServiceData.MethodDatas.Count == 0) return null;
Script\Services\RestHandler.cs (1)
71if (methodData.ParameterDatas.Count > 0) {
Script\Services\WebServiceMethodData.cs (1)
185IDictionary<string, object> result = new Dictionary<string, object>(rawParams.Count);
UI\WebControls\DataSourceHelper.cs (1)
98return validationErrors.Count == 0;
UI\WebControls\Expressions\SearchExpression.cs (1)
53if (values.Count == 0) {
UI\WebControls\ListView.cs (6)
397if (_editIndex > -1 && _editIndex < Items.Count) { 1539_totalRowCount = usePaging ? pagedDataSource.DataSourceCount : _itemList.Count; 1542if (_itemList.Count == 0) { 2195if (item == null && itemIndex < Items.Count) { 2544if (dataItem == null && Items.Count > itemIndex) { 3114if (IsDataBindingAutomatic && editIndex != -1 && editIndex < Items.Count && IsViewStateEnabled) {
UI\WebControls\QueryableDataSourceHelper.cs (5)
133Dictionary<string, object> escapedParameters = new Dictionary<string, object>(parameters.Count, 162if (parameters != null && parameters.Count > 0) { 174Debug.Assert((whereParameters != null) && (whereParameters.Count > 0)); 178whereClause.Parameters = new Dictionary<string, object>(whereParameters.Count); 202Debug.Assert((orderByParameters != null) && (orderByParameters.Count > 0));
System.Windows.Forms (1)
winforms\Managed\System\WinForms\FileDialogCustomPlacesCollection.cs (1)
20for (int i = this.Items.Count - 1; i >= 0; --i)
System.Windows.Forms.DataVisualization (4)
Common\Formulas\FormulaHelpers.cs (4)
1461for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1512if (id - 1 < seriesFields.Count) 1553for (int i = 0; i < unmappedFormulaFields.Count && seriesFields.Count > 0; ) 1602if (seriesFieldIndex < seriesFields.Count)
System.Workflow.Activities (22)
LocalService\CorrelationService.cs (2)
190if (initializerProperties.Count != followerProperties.Count)
LocalService\MessageQueueKey.cs (1)
59this.correlationValues = new CorrelationProperty[propertyValues.Count];
Role\ADRoleFactory.cs (1)
94if (adRole.GetEntries().Count == 0)
Rules\Design\DesignerHelpers.cs (1)
49if (rule.ElseActions.Count > 0)
Rules\Executor.cs (5)
357List<RuleState> orderedRules = new List<RuleState>(rules.Count); 376long[] executionCount = new long[orderedRules.Count]; 377bool[] satisfied = new bool[orderedRules.Count]; 385while (current < orderedRules.Count) 410if ((actions != null) && (actions.Count > 0))
Rules\Parser\Parser.cs (2)
1142if (paths.Count == 0 || paths.Count > 1)
Rules\Rule.cs (3)
260if (myActions.Count != otherActions.Count) 262for (int i = 0; i < myActions.Count; ++i)
Rules\RuleDefinitions.cs (2)
93if (cdiff.Count == 0) 97for (int i = 0; i < rdiff.Count; ++i)
Rules\RuleSet.cs (2)
197|| (this.Rules.Count != other.Rules.Count))
Sequence.cs (3)
154if (seqList.Count == 0) 159for (int i = (seqList.Count - 1); i >= 0; i--) 164if (i == (seqList.Count - 1))
System.Workflow.ComponentModel (61)
AuthoringOM\ActivitiesCollection.cs (1)
186return ((ICollection<Activity>)this).Count;
AuthoringOM\Activity.cs (5)
947DependencyProperty[] propertyClone = new DependencyProperty[this.DependencyPropertyValues.Keys.Count]; 1081if (nestedActivities != null && nestedActivities.Count > 0) 1711if (childsCompletedContexts != null && childsCompletedContexts.Count > 0) 1733if (childsCompletedContexts != null && childsCompletedContexts.Count > 0) 1771if (childsCompletedContexts != null && childsCompletedContexts.Count > 0)
AuthoringOM\ActivityExecutionContext.cs (6)
414if (handles == null || handles.Count == 0) 451if (synchronizationHandlesOnParent != null && synchronizationHandlesOnParent.Count != 0) 472if (handles == null || handles.Count == 0) 504else if (grantedLocks[handle].WaitList.Count == 0) 533if (synchronizationHandlesOnParent != null && synchronizationHandlesOnParent.Count != 0) 554if (handleCollection == null || handleCollection.Count == 0)
AuthoringOM\ActivityExecutionContextCollection.cs (1)
93for (int i = 0; i < alternateFlow.AlternateFlowActivities.Count; ++i)
AuthoringOM\Behaviors\CancellationHandler.cs (1)
77if (((ISupportAlternateFlow)cancellationHandlerActivity).AlternateFlowActivities.Count > 0)
AuthoringOM\Behaviors\Compensation.cs (1)
82else if (((ISupportAlternateFlow)compensation).AlternateFlowActivities.Count > 0)
AuthoringOM\Behaviors\ExceptionHandler.cs (1)
203if (((ISupportAlternateFlow)exceptionHandler).AlternateFlowActivities.Count > 0)
AuthoringOM\Behaviors\ExceptionHandlers.cs (1)
207if (((ISupportAlternateFlow)exceptionHandlers).AlternateFlowActivities.Count > 0)
AuthoringOM\Compiler\XomlCompilerParameters.cs (2)
268for (int i = 0; i < supportedTargetFrameworks.Count; i++) 272for (int j = 0; j < refDirectories.Count; j++)
AuthoringOM\Design\ActivityDesigner.cs (1)
797if (rules.Count > 0)
AuthoringOM\Design\ActivityPreviewDesigner.cs (10)
466nextObject = this.previewStrip.Items[(index > 0) ? index - 1 : this.previewStrip.Items.Count - 1].UserData[DesignerUserDataKeys.Activity]; 467else if (direction == DesignerNavigationDirection.Right && index <= this.previewStrip.Items.Count - 1) 468nextObject = this.previewStrip.Items[(index < this.previewStrip.Items.Count - 1) ? index + 1 : 0].UserData[DesignerUserDataKeys.Activity]; 733if (selectedItem != -1 && selectedItem < this.previewStrip.Items.Count) 767if (listChangeArgs.Action == ActivityCollectionChangeAction.Add && listChangeArgs.AddedItems.Count > 0 && !Helpers.IsAlternateFlowActivity(listChangeArgs.AddedItems[0])) 771if (listChangeArgs.Index < this.previewStrip.Items.Count) 776else if (listChangeArgs.Action == ActivityCollectionChangeAction.Remove && listChangeArgs.RemovedItems.Count > 0) 872index = (index >= this.previewStrip.Items.Count) ? 0 : (index < 0) ? this.previewStrip.Items.Count - 1 : index; 882designerVerb.Enabled = (this.previewStrip.ActiveItem != null && this.previewStrip.Items.Count > 1 && this.previewStrip.Items.IndexOf(this.previewStrip.ActiveItem) >= 0);
AuthoringOM\Design\Connector.cs (3)
121if (this.connectionIndex < connections.Count) 133if (connections.Count > 0) 413this.connectorModified = (this.parentDesigner != null && segments.Count > 0);
AuthoringOM\Design\DesignerHelpers.cs (1)
1535if (ShowingMenu || designerVerbs.Count == 0)
AuthoringOM\Design\DesignerWidgets.cs (10)
148if (base.itemStrip.ScrollPosition + base.itemStrip.MaxVisibleItems < base.itemStrip.Items.Count) 208for (int itemIndex = scrollPosition; itemIndex < Items.Count && itemIndex < (scrollPosition + visibleItems); itemIndex++) 516if (this.itemStrip.ScrollPosition + this.itemStrip.MaxVisibleItems < this.itemStrip.Items.Count) 911if (e.Action == ItemListChangeAction.Remove && e.RemovedItems.Count > 0 && this.selectedItem == e.RemovedItems[0]) 923if (e.AddedItems.Count > 0) 2460for (int i = 0; (i < VisibleItemCount) && ((this.scrollMarker + i) < Items.Count); i++) 2859if (e.Action == ItemListChangeAction.Remove && e.RemovedItems.Count > 0 && ActiveItem == e.RemovedItems[0]) 2869if (e.Action == ItemListChangeAction.Add && e.AddedItems.Count > 0) 2946bounds = (index >= 0 && index < this.itemStrip.Items.Count) ? this.itemStrip.GetItemBounds(this.itemStrip.Items[index]) : Rectangle.Empty; 3164ItemInfo itemInfo = (index >= 0 && index < this.itemStrip.Items.Count) ? this.itemStrip.Items[index] : null;
AuthoringOM\Design\FreeFormDesigner.cs (3)
223return (childdesigners.Count > 0) ? childdesigners[0].Activity : null; 232return (childdesigners.Count > 0) ? childdesigners[childdesigners.Count - 1].Activity : null;
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
653if (draggedActivities.Count > 0) 657if (draggedActivities.Count > 1)
AuthoringOM\Design\MessageFilters\DynamicActionMessageFilter.cs (4)
129for (int j = 0; j < action.Buttons.Count; j++) 137for (int j = 0; j < action.Buttons.Count; j++) 180for (int j = 0; j < action.Buttons.Count; j++) 256for (int j = 0; j < action.Buttons.Count; j++)
AuthoringOM\Design\MessageFilters\FreeFormDragDropManager.cs (2)
164Debug.Assert(locations.Length == DraggedActivities.Count); 165Debug.Assert(this.draggedDesignerImages.Count == DraggedActivities.Count);
AuthoringOM\Design\WorkflowView.cs (1)
1971Debug.Assert(filters.Count == 0);
AuthoringOM\Sequence.cs (2)
85for (int i = (children.Count - 1); i >= 0; i--) 90if (i == (children.Count - 1))
AuthoringOM\Serializer\ActivitySurrogate.cs (1)
49if (instanceProperties != null && instanceProperties.Count > 0)
AuthoringOM\Serializer\WorkflowMarkupSerializer.cs (2)
2986if (contents.Count == 0) 3039if (contents.Count > 1)
System.Workflow.Runtime (46)
CorrelationToken.cs (1)
140ActivityExecutorDelegateInfo<CorrelationTokenEventArgs>[] clonedSubscribers = new ActivityExecutorDelegateInfo<CorrelationTokenEventArgs>[subscribers.Count];
Hosting\SharedConnectionWorkflowTransactionService.cs (2)
270" not found in table of count " + this.transactionConnectionTable.Count); 281" in table of count " + this.transactionConnectionTable.Count);
RTTrackingProfile.cs (1)
677if ((null == _pendingChanges || _pendingChanges.Count <= 0))
System\Activities\Statements\Interop.cs (2)
116for (int i = 0; i < this.exposedBodyProperties.Count; i++) 665for (int i = 0; i < this.exposedBodyProperties.Count; i++)
System\Activities\Statements\InteropExecutor.cs (2)
504if (this.outputProperties.Count != 0) 506this.outputs = new Dictionary<string, object>(this.outputProperties.Count);
Tracking.cs (2)
386if ((null != path) && (path.Count > 0)) 472if ((null != path) && (path.Count > 0))
Tracking\SqlTrackingQuery.cs (2)
232if (null != opt.TrackingDataItems && opt.TrackingDataItems.Count > 0) 240if (null == artifacts || 0 == artifacts.Count)
Tracking\SqlTrackingService.cs (30)
1006if (_activityEventBatchSize == activities.Count) 1016if (activities.Count > 0) 1034if (activities.Count > 0) 1074if (activities.Count > 0) 1527if (null == activities || activities.Count <= 0) 1530if (activities.Count > _activityEventBatchSize) 1555for (int i = 0; i < activities.Count; i++) 1571for (int i = 0; i < activities.Count; i++) 1597for (int i = 0; i < activities.Count; i++) 1795if (null == items || items.Count <= 0) 1799if (items.Count <= _dataItemBatchSize) 1825if (null == items || items.Count <= 0) 1828if (items.Count > _dataItemAnnotationBatchSize) 1868for (i = 0; i < items.Count; i++) 1902if (null == annotations || annotations.Count <= 0) 1905if (annotations.Count > _dataItemAnnotationBatchSize) 1933if (null == annotations || annotations.Count <= 0) 1938if (annotations.Count <= _eventAnnotationBatchSize) 1965if (null == annotations || annotations.Count <= 0) 1968if (annotations.Count > _eventAnnotationBatchSize) 2073if ((null != sargs.AddedActivities) && (sargs.AddedActivities.Count > 0)) 2079if ((null != sargs.RemovedActivities) && (sargs.RemovedActivities.Count > 0)) 2217if ((null == record.Body) || (0 == record.Body.Count)) 2220for (int i = 0; i < record.Body.Count; i++) 2228if (((null == record.Body) || (0 == record.Body.Count)) && (null == record.EventArgs) && (null == record.UserData)) 2247for (int i = 0; i < record.Body.Count; i++) 2267for (int i = 0; i < wargs.Changes.Count; i++) 2528if ((null == callPath) || (callPath.Count <= 0)) 2531for (int i = 0; i < callPath.Count; i++) 2534if (i < callPath.Count - 1)
Tracking\TrackingProfileSerializer.cs (3)
1162if ((null == loc.Events) || (0 == loc.Events.Count)) 1287if ((null == events) || (0 == events.Count)) 1317if ((null == events) || (0 == events.Count))
WorkflowRuntime.cs (1)
1310while ((null != executors) && (executors.Count > 0))
System.WorkflowServices (16)
System\ServiceModel\Description\DescriptionCreator.cs (1)
46if (context.Contracts == null || context.Contracts.Count == 0)
System\ServiceModel\Dispatcher\DurableInstanceContextProvider.cs (1)
155if (instanceContext.IncomingChannels.Count == 0)
System\ServiceModel\Dispatcher\WorkflowInstanceContextProvider.cs (2)
228IChannel[] incomingChannels = new IChannel[callbackState.InstanceContext.IncomingChannels.Count]; 231if (callbackState.InstanceContext.IncomingChannels.Count != 0)
System\ServiceModel\Dispatcher\WorkflowOperationAsyncResult.cs (1)
60if (workflowRequestContext.ContextProperties.Count > 1) //DurableDispatchContextProperty.
System\ServiceModel\Security\SerializableAuthorizationContext.cs (1)
230for (int num1 = 0; num1 < this.claimSets.Count; num1++)
System\ServiceModel\SerializableReadOnlyDictionary.cs (1)
56get { return this.dictionary.Count; }
System\Workflow\Activities\OperationParameterInfoCollection.cs (1)
44return ((ICollection<OperationParameterInfo>) this).Count;
System\Workflow\Activities\ReceiveActivity.cs (3)
1454outputs = new object[outputParameters.Count]; 1459for (int index = 0; index < outputParameters.Count; ++index) 1508for (int index = 0; index < inputParameters.Count; index++)
System\Workflow\Activities\SendActivity.cs (5)
409bool hasContext = (logicalChannel.Context != null && logicalChannel.Context.Count > 0); 663if (inputParameters.Count > 0) 665for (int index = 0; index < inputParameters.Count; index++) 699if (this.outputParameters.Count > 0 && outputs.Length > 0) 701for (int index = 0; index < outputParameters.Count; ++index)
System.Xaml.Hosting (2)
System\Xaml\Hosting\XamlBuildProvider.cs (2)
95for (int i = 0; i < xamlType.TypeArguments.Count; i++) 98if (i < xamlType.TypeArguments.Count - 1)
System.Xml (15)
System\Xml\Schema\XdrValidator.cs (1)
249for (int i = 0; i < context.ElementDecl.DefaultAttDefs.Count; ++i) {
System\Xml\Schema\XmlSchemaValidator.cs (1)
892for (int i = 0; i < currentElementDecl.DefaultAttDefs.Count; ++i) {
System\Xml\Schema\XsdValidator.cs (1)
445for (int i = 0; i < context.ElementDecl.DefaultAttDefs.Count; ++i) {
System\Xml\XPath\Internal\FunctionQuery.cs (5)
26Query[] tmp = new Query[other.args.Count]; { 44XPathResultType[] argTypes = new XPathResultType[args.Count]; 45for(int i = 0; i < args.Count; i ++) { 62object[] argVals = new object[args.Count]; 63for (int i = 0; i < args.Count; i ++) {
System\Xml\XPath\Internal\StringFunctions.cs (7)
29Query[] tmp = new Query[other.argList.Count]; { 38for (int i = 0; i < argList.Count; i++) { 68if (argList.Count > 0) { 105while (count < argList.Count) { 148if (argList.Count == 3) { 174if (argList.Count > 0) { 182if (argList.Count > 0) {
WindowsBase (12)
Base\System\Collections\ObjectModel\WeakReadOnlyCollection.cs (3)
48get { return list.Count; } 202int count = dlist.Count; 280int n = list.Count;
Base\System\IO\Packaging\Package.cs (2)
1298PackUriHelper.ValidatedPartUri[] partKeys = new PackUriHelper.ValidatedPartUri[_partList.Keys.Count]; 1309for (int i = 0; i < _partList.Keys.Count; i++)
Shared\MS\Utility\FrugalList.cs (3)
1315_count = collection.Count; 2054if (collection.Count > 6) 2061Capacity = collection.Count;
Shared\System\Windows\Markup\ReflectionHelper.cs (4)
227for (int j = 0; j < list.Count; j++) 260for (int j = 0; j < list.Count && !attributeDataFound; j++) 304if (constructorArguments.Count == 1 && !noArgs) 319else if (constructorArguments.Count == 0)
XamlBuildTask (17)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (6)
170if (classData.Attributes != null && classData.Attributes.Count > 0) 220CodeAttributeArgument[] arguments = new CodeAttributeArgument[attrib.Parameters.Count + attrib.Properties.Count]; 222for (i = 0; i < attrib.Parameters.Count; i++) 946if (property.Attributes != null && property.Attributes.Count > 0) 983xamlType.TypeArguments != null && xamlType.TypeArguments.Count > 0)
Microsoft\Build\Tasks\Xaml\ClassValidator.cs (1)
56if (validationErrors != null && validationErrors.Count > 0)
Microsoft\Build\Tasks\Xaml\CompilationPass2TaskInternal.cs (2)
189if ((!this.SupportExtensions) && ((this.ApplicationMarkup == null) || this.ApplicationMarkup.Count == 0)) 193else if (this.ApplicationMarkupWithTypeName == null || this.ApplicationMarkupWithTypeName.Count == 0)
Microsoft\Build\Tasks\Xaml\PartialClassGenerationTaskInternal.cs (2)
244if (LoadedAssemblyList.Count > 0) 276if (this.ApplicationMarkup == null || this.ApplicationMarkup.Count == 0)
Microsoft\Build\Tasks\Xaml\WrappingXamlSchemaContext.cs (1)
57string clrNamespace = namespaces[namespaces.Count - 1];
Microsoft\Build\Tasks\Xaml\XamlBuildTaskServices.cs (4)
413if (xamlType.TypeArguments != null && xamlType.TypeArguments.Count > 0) 448if (xamlTypeName.TypeArguments.Count > 0) 539if (xamlType.TypeArguments != null && xamlType.TypeArguments.Count > 0) 541qualifiedName = name + "`" + xamlType.TypeArguments.Count;
Microsoft\Build\Tasks\Xaml\XamlValidatingReader.cs (1)
474if (unresolvedLeafTypeList.Count > 1 || !unresolvedLeafTypeList.Contains(type))