Implemented interface member:
property
Count
System.Collections.ICollection.Count
853 references to Count
mscorlib (4)
system\collections\collectionbase.cs (4)
66if (index < 0 || index >= Count) 105if (index < 0 || index >= Count) 111if (index < 0 || index >= Count) 167if (index < 0 || index > Count)
PresentationBuildTasks (5)
BuildTasks\Ms\Internal\MarkupCompiler\MarkupCompiler.cs (5)
940if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 965Debug.Assert(_ccRoot.StyleConnectorFn.Statements.Count > 0); 966ccsConnector = _ccRoot.StyleConnectorFn.Statements[_ccRoot.StyleConnectorFn.Statements.Count - 1] as CodeConditionStatement; 1102if (_ccRoot.StyleConnectorFn.Statements.Count > 1) 1269if (_ccRoot.HookupFn.Statements.Count == 1 &&
System (186)
compmod\microsoft\csharp\csharpcodeprovider.cs (54)
714if (init.Count > 0) { 858if (currentMember.StartDirectives.Count > 0) { 866if (currentMember.EndDirectives.Count > 0) { 883if (currentMember.StartDirectives.Count > 0) { 891if (currentMember.EndDirectives.Count > 0) { 972if (e.EndDirectives.Count > 0) { 1013if( e.TypeArguments.Count > 0) { 1048if (e.StartDirectives.Count > 0) { 1114if (e.EndDirectives.Count > 0) { 1464if (falseStatemetns.Count > 0) { 1493if (catches.Count > 0) { 1517if (finallyStatements.Count > 0) { 1640if (e.CustomAttributes.Count > 0) { 1755if (e.CustomAttributes.Count > 0) { 1766if (e.CustomAttributes.Count > 0) { 1792if (e.CustomAttributes.Count > 0) { 1803if (e.CustomAttributes.Count > 0) { 1829if (currentMember.StartDirectives.Count > 0) { 1842if (currentMember.EndDirectives.Count > 0) { 1858if (e.CustomAttributes.Count > 0) { 1861if (e.ReturnTypeCustomAttributes.Count > 0) { 1917if (currentMember.StartDirectives.Count > 0) { 1925if (currentMember.EndDirectives.Count > 0) { 1940if (e.CustomAttributes.Count > 0) { 1962if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) { 2208if (currentMember.StartDirectives.Count > 0) { 2216if (currentMember.EndDirectives.Count > 0) { 2232if (e.CustomAttributes.Count > 0) { 2245if (baseArgs.Count > 0) { 2256if (thisArgs.Count > 0) { 2282if (e.CustomAttributes.Count > 0) { 2320if (e.StartDirectives.Count > 0) { 2359if (e.EndDirectives.Count > 0) { 2385if (e.CustomAttributes.Count > 0) { 2448if (member.StartDirectives.Count > 0) { 2504if (member.EndDirectives.Count > 0) { 2518if (currentMember.StartDirectives.Count > 0) { 2526if (currentMember.EndDirectives.Count > 0) { 2544if (currentMember.StartDirectives.Count > 0) { 2563if (currentMember.EndDirectives.Count > 0) { 2673bool multiline = parameters.Count > ParameterMultilineThreshold; 2708if( typeParameters.Count == 0) { 2714for(int i = 0; i < typeParameters.Count; i++) { 2722if (typeParameters[i].CustomAttributes.Count > 0) { 2734if( typeParameters.Count == 0) { 2738for(int i = 0; i < typeParameters.Count; i++) { 2745if( typeParameters[i].Constraints.Count > 0) { 2889if (e.StartDirectives.Count > 0) { 2941if (e.AssemblyCustomAttributes.Count > 0) { 2955if (e.EndDirectives.Count > 0) { 2969for (int i = 0; i < directives.Count; i++) { 3055if (attributes.Count == 0) return; 3309GetTypeArgumentsOutput(typeArguments, 0, typeArguments.Count, sb); 3326if (i < typeArguments.Count)
compmod\microsoft\visualbasic\VBCodeProvider.cs (37)
659if (attributes.Count == 0) return; 1112if (init.Count > 0) { 1326if (parameters.Count > 0) { 1343if( e.TypeArguments.Count > 0) { 1395if (parameters.Count > 0) { 1424if (e.CustomAttributes.Count > 0) { 1546if (falseStatemetns.Count > 0) { 1568if (catches.Count > 0) { 1582if (finallyStatements.Count > 0) { 1653if (eAsArrayCreate != null && eAsArrayCreate.Initializers.Count == 0) { 1717if (e.CustomAttributes.Count > 0) { 1733if (e.ImplementationTypes.Count > 0) { 1768if (e.CustomAttributes.Count > 0) { 1780if (e.CustomAttributes.Count > 0) { 1837if (e.CustomAttributes.Count > 0) { 1885if (e.ReturnTypeCustomAttributes.Count > 0) { 1892if (e.ImplementationTypes.Count > 0) { 1933if (e.CustomAttributes.Count > 0) { 1975if (e.CustomAttributes.Count > 0) { 2000if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) { 2014if (e.Parameters.Count > 0) { 2022if (e.ImplementationTypes.Count > 0) { 2105if (e.CustomAttributes.Count > 0) { 2118if (thisArgs.Count > 0) { 2124else if (baseArgs.Count > 0) { 2148if (e.CustomAttributes.Count > 0) { 2172if (e.CustomAttributes.Count > 0) { 2202if (e.CustomAttributes.Count > 0) { 2209if (e.BaseTypes.Count > 0) { 2218if (e.CustomAttributes.Count > 0) { 2260if( typeParameters.Count == 0) { 2266for(int i = 0; i < typeParameters.Count; i++) { 2284int constraintCount = constraints.Count; 2458if (e.AssemblyCustomAttributes.Count > 0) { 2467for (int i = 0; i < directives.Count; i++) { 2742GetTypeArgumentsOutput(typeArguments, 0, typeArguments.Count, sb); 2760if (i < typeArguments.Count)
compmod\system\codedom\CodeAttributeArgumentCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeAttributeDeclarationCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeCatchClauseCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeCommentStatementCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeDirectiveCollection.cs (1)
59int currentCount = value.Count;
compmod\system\codedom\CodeExpressionCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeMemberProperty.cs (2)
84return hasGet || getStatements.Count > 0; 102return hasSet || setStatements.Count > 0;
compmod\system\codedom\CodeNamespaceCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeParameterDeclarationExpressionCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeStatementCollection.cs (1)
102int currentCount = value.Count;
compmod\system\codedom\CodeTypeDeclarationCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeTypeMemberCollection.cs (1)
94int currentCount = value.Count;
compmod\system\codedom\CodeTypeParameterCollection.cs (1)
62int currentCount = value.Count;
compmod\system\codedom\CodeTypeReference.cs (2)
333if (needsFixup && TypeArguments.Count > 0) 334returnType = returnType + '`' + TypeArguments.Count.ToString(CultureInfo.InvariantCulture);
compmod\system\codedom\CodeTypeReferenceCollection.cs (1)
108int currentCount = value.Count;
compmod\system\codedom\compiler\CodeGenerator.cs (26)
209if (e.StartDirectives.Count > 0) { 248if (e.EndDirectives.Count > 0) { 273if (member.StartDirectives.Count > 0) { 329if (member.EndDirectives.Count > 0) { 343if (currentMember.StartDirectives.Count > 0) { 351if (currentMember.EndDirectives.Count > 0) { 559if (currentMember.StartDirectives.Count > 0) { 567if (currentMember.EndDirectives.Count > 0) { 583if (currentMember.StartDirectives.Count > 0) { 591if (currentMember.EndDirectives.Count > 0) { 696if (currentMember.StartDirectives.Count > 0) { 704if (currentMember.EndDirectives.Count > 0) { 722if (currentMember.StartDirectives.Count > 0) { 741if (currentMember.EndDirectives.Count > 0) { 767if (e.EndDirectives.Count > 0) { 783if (currentMember.StartDirectives.Count > 0) { 796if (currentMember.EndDirectives.Count > 0) { 866if (currentMember.StartDirectives.Count > 0) { 874if (currentMember.EndDirectives.Count > 0) { 888if (e.StartDirectives.Count > 0) { 954if (e.EndDirectives.Count > 0) { 977if (attributes.Count == 0) return; 1300bool multiline = parameters.Count > ParameterMultilineThreshold; 1474if (e.CustomAttributes.Count > 0) { 1815if (e.StartDirectives.Count > 0) { 1826if (e.EndDirectives.Count > 0) {
compmod\system\codedom\compiler\CodeValidator.cs (23)
104if (e.AssemblyCustomAttributes.Count > 0) { 146if (attributes.Count == 0) return; 193for (int i=0; i<parameters.Count; i++) { 206if (e.CustomAttributes.Count > 0) { 221if (e.CustomAttributes.Count > 0) { 230if (baseArgs.Count > 0) { 234if (thisArgs.Count > 0) { 243if (e.CustomAttributes.Count > 0) { 254if (e.Parameters.Count > 0 && String.Compare(e.Name, "Item", StringComparison.OrdinalIgnoreCase) == 0) { 301if (e.CustomAttributes.Count > 0) { 304if (e.ReturnTypeCustomAttributes.Count > 0) { 327if (e.CustomAttributes.Count > 0) { 442if (falseStatemetns.Count > 0) { 450if (catches.Count > 0) { 461if (finallyStatements.Count > 0) { 505if (e.CustomAttributes.Count > 0) { 542for (int i=0; i<refs.Count; i++) { 565if ((totalTypeArgs != e.TypeArguments.Count) && (e.TypeArguments.Count != 0)) { 566throw new ArgumentException(SR.GetString(SR.ArityDoesntMatch, baseType, e.TypeArguments.Count)); 673if (init.Count > 0) { 771if (e.CustomAttributes.Count > 0) { 804for (int i=0; i<e.Count; i++)
compmod\system\codedom\compiler\CompilerErrorCollection.cs (3)
91int currentCount = value.Count; 121if (Count > 0) { 140if (Count > 0) {
compmod\system\componentmodel\design\DesignerVerbCollection.cs (1)
71int currentCount = value.Count;
net\System\Net\_SecureChannel.cs (8)
91GlobalLog.Enter("SecureChannel#" + ValidationHelper.HashString(this) + "::.ctor", "hostname:" + hostname + " #clientCertificates=" + ((clientCertificates == null) ? "0" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo))); 92if (Logging.On) Logging.PrintInfo(Logging.Web, this, ".ctor", "hostname=" + hostname + ", #clientCertificates=" + ((clientCertificates == null) ? "0" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo)) + ", encryptionPolicy=" + encryptionPolicy); 354if (collectionEx.Count > 0 && collectionEx[0].HasPrivateKey) 365if (collectionEx.Count > 0 && collectionEx[0].HasPrivateKey) 584if (ClientCertificates.Count == 0) 596else if (m_CredentialsHandle == null && m_ClientCertificates != null && m_ClientCertificates.Count > 0) 606else if (m_ClientCertificates!=null && m_ClientCertificates.Count > 0) 623for (int i = 0; i < m_ClientCertificates.Count; ++i)
net\System\Net\_TLSstream.cs (2)
61GlobalLog.Enter("TlsStream::TlsStream", "host="+destinationHost+", #certs="+((clientCertificates == null) ? "none" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo))); 70(clientCertificates == null) ? "null" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo),
net\System\Net\HttpWebRequest.cs (1)
5421if (_ClientCertificates!=null && ClientCertificates.Count>0) {
net\System\Net\mail\smtpconnection.cs (1)
169if (EnableSsl && ClientCertificates != null && ClientCertificates.Count > 0)
net\System\Net\X509CertificateCollection.cs (1)
52for (int i = 0; (i < value.Count); i = (i + 1)) {
security\system\security\cryptography\x509\x509certificate2collection.cs (2)
222X509Certificate2[] x509Certs = new X509Certificate2[collection.Count]; 261X509Certificate2[] x509Certs = new X509Certificate2[collection.Count];
security\system\security\cryptography\x509\x509chain.cs (1)
356if (extraStore != null && extraStore.Count > 0)
services\monitoring\system\diagnosticts\CounterCreationDataCollection.cs (1)
75int currentCount = value.Count;
services\monitoring\system\diagnosticts\EventLogPermissionEntryCollection.cs (1)
50int currentCount = value.Count;
services\monitoring\system\diagnosticts\PerformanceCounterCategory.cs (2)
318for (int i = 0; i < counterData.Count; i++) { 333if (counterData.Count <= (i + 1))
services\monitoring\system\diagnosticts\PerformanceCounterLib.cs (4)
474string [] counters = new string[creationData.Count]; 475string [] counterTypes = new string[creationData.Count]; 476for (int i = 0; i < creationData.Count; i++) { 524for (int counterIndex = 1; counterIndex <= creationData.Count; ++ counterIndex) {
services\monitoring\system\diagnosticts\PerformanceCounterPermissionEntryCollection.cs (1)
51int currentCount = value.Count;
System.Activities (5)
System\Activities\ExpressionParser\SourceExpressionException.cs (1)
38this.errors = new CompilerError[errors.Count];
System\Activities\XamlIntegration\TextExpressionCompiler.cs (4)
873CodeStatement[] returnStatements = new CodeStatement[statementCollection.Count]; 1204CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count]; 1231CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count]; 1259CodeStatement[] returnStatements = new CodeStatement[compiledDataContextStatements.Count];
System.Data (11)
fx\src\data\System\Data\DataSet.cs (3)
3537if ((2 == items.Count) && (items[0] is XmlSchemaAny) && (items[1] is XmlSchemaAny)) 3597if (items.Count == 2) { 3607else if (1 == items.Count)
fx\src\data\System\Data\SqlClient\SqlBulkCopy.cs (5)
582for(assocId = 0; assocId < _localColumnMappings.Count; assocId++) { 702if(assocId == _localColumnMappings.Count) { 709if(nmatched + nrejected != _localColumnMappings.Count) { 1864if (_localColumnMappings.Count > 0) { 1886if (_localColumnMappings.Count > 0) {
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (1)
476if (matchingCertificates == null || matchingCertificates.Count == 0)
fx\src\data\System\Data\XMLSchema.cs (2)
514if ((elements.Count == 1) || (this.FromInference && elements.Count > 0)) { //let's see if this element looks like a DataSet
System.Data.Entity.Design (5)
System\Data\Entity\Design\EntityCodeGenerator.cs (1)
351if (codeGenerator.Errors.Count != 0)
System\Data\Entity\Design\EntityViewGeneration\EntityViewGenerator.cs (1)
433if (codeNamespace.Types.Count > 0)
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (1)
56if ( Item.KeyMembers.Count > 0 && typeDecls.Count == 1 )
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
100if (typeDeclaration.Count > 0)
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
206if (statements != null && statements.Count > 0)
System.Data.Services.Design (4)
System\Data\EntityModel\Emitters\EntityTypeEmitter.cs (1)
57if (Item.KeyMembers.Count > 0 && typeDecls.Count == 1)
System\Data\EntityModel\Emitters\NamespaceEmitter.cs (1)
149if (typeDeclaration.Count > 0)
System\Data\EntityModel\Emitters\NavigationPropertyEmitter.cs (1)
70Debug.Assert(fieldType.TypeArguments.Count == 1, "Declare type is non generic.");
System\Data\EntityModel\Emitters\PropertyEmitter.cs (1)
202if (statements != null && statements.Count > 0)
System.Data.SqlXml (3)
System\Xml\Xsl\Xslt\Compiler.cs (3)
251return CompilerResults.Errors.Count; 311if (errorColl.Count > 1) { 312CompilerError[] errors = new CompilerError[errorColl.Count];
System.IdentityModel (9)
System\IdentityModel\CryptoHelper.cs (1)
1346for (int i = 0; i < certificates.Count; ++i)
System\IdentityModel\SecurityUtils.cs (2)
310for (int i = 0; i < collection.Count; i++) 453for (int i = 0; i < certificates.Count; ++i)
System\IdentityModel\Selectors\X509CertificateChain.cs (2)
217if ((collection == null || collection.Count <= 0) && certContext.hCertStore == IntPtr.Zero) 243if (collection != null && collection.Count > 0)
System\IdentityModel\Selectors\X509SecurityTokenProvider.cs (2)
37if (certificates.Count < 1) 41if (certificates.Count > 1)
System\IdentityModel\Tokens\X509CertificateStoreTokenResolver.cs (1)
207for (int i = 0; i < certs.Count; i++)
System\IdentityModel\X509Util.cs (1)
91if (matches.Count == 1)
System.Management (2)
WmiGenerator.cs (2)
2211if(cctor.Parameters.Count == 1 && cctor.Parameters[0].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType) 2270if(cctor.Parameters.Count == 2 && cctor.Parameters[1].Type.BaseType == new CodeTypeReference(PublicNamesUsed["PathClass"].ToString()).BaseType)
System.Messaging (1)
System\Messaging\MessageQueuePermissionEntryCollection.cs (1)
64int currentCount = value.Count;
System.Runtime.Remoting (1)
metadata\metadata.cs (1)
233if (errors.Count > 0)
System.Runtime.Serialization (22)
System\Runtime\Serialization\CodeExporter.cs (2)
297CodeNamespace[] namespaces = new CodeNamespace[codeCompileUnit.Namespaces.Count]; 330object[] objects = new object[collection.Count];
System\Runtime\Serialization\DataContract.cs (1)
1883if (typeReference.TypeArguments.Count > 0)
System\Runtime\Serialization\SchemaExporter.cs (1)
556XmlSchemaObject[] itemArray = new XmlSchemaObject[schema.Items.Count];
System\Runtime\Serialization\SchemaImporter.cs (18)
557return ((restriction.BaseTypeName == expectedBase && restriction.Facets.Count > 0) || ImportType(restriction.BaseTypeName) is EnumDataContract); 570if (rootSequence.Items == null || rootSequence.Items.Count == 0) 573if (rootSequence.Items.Count != 1) 586if (rootSequence.Items == null || rootSequence.Items.Count == 0) 591if (attributes == null || attributes.Count == 0) 594return (rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaAny); 602for (int i = 0; i < items.Count; i++) 690for (int memberIndex = 0; memberIndex < rootSequence.Items.Count; memberIndex++) 784if (sequence.Items == null || sequence.Items.Count != 1) 791if (xsdType.AnyAttribute != null || (xsdType.Attributes != null && xsdType.Attributes.Count > 0)) 806if (sequence.Items == null || sequence.Items.Count != 1) 816if (xsdType.AnyAttribute == null || xsdType.Attributes.Count > 0) 869if (rootSequence.Items == null || rootSequence.Items.Count < 1) 871else if (rootSequence.Items.Count > 1) 893for (int i = 0; i < attributes.Count; i++) 912return (rootSequence == null || rootSequence.Items == null || rootSequence.Items.Count == 0); 1387for (int i = 0; i < attributes.Count; i++) 1440if (annotation != null && annotation.Items != null && annotation.Items.Count > 0 && annotation.Items[0] is XmlSchemaAppInfo)
System.Security (27)
system\security\cryptography\pkcs\envelopedpkcs7.cs (9)
401if (this.Certificates.Count > 0 || this.UnprotectedAttributes.Count > 0) { 427encodeInfo.cCertEncoded = (uint) this.Certificates.Count; 666if (certificates.Count > 0) { 667encryptParam.rgCertEncoded = CAPI.LocalAlloc(CAPI.LPTR, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 668for (index = 0; index < certificates.Count; index++) { 1065if (recipientStore.Count == 0 && extraStore.Count == 0) 1118if (originatorStore.Count == 0 && includedButNotDisposed.Count == 0)
system\security\cryptography\pkcs\pkcs7recipient.cs (2)
90m_recipients = new ArrayList(certificates.Count); 91for (int index = 0; index < certificates.Count; index++) {
system\security\cryptography\pkcs\pkcsutils.cs (12)
516if (certificates.Count < 1) 520if (recipients.Count < 1) 553if (certificates.Count < 1) 557if (certificates.Count < 1) 560Debug.Assert(certificates.Count == 1); 957if (certificates.Count > 0) { 959certBlob = CAPI.LocalAlloc(CAPI.LMEM_FIXED, new IntPtr(certificates.Count * Marshal.SizeOf(typeof(CAPI.CRYPTOAPI_BLOB)))); 983if (foundCerts.Count == 0) { 1006if (certificates != null && certificates.Count > 0) { 1011if (filters.Count > 0) { 1013if (filters.Count > 0) 1019if (filters.Count > 0)
system\security\cryptography\pkcs\signedpkcs7.cs (2)
312signedEncodeInfo.cCertEncoded = (uint) bagOfCerts.Count; 313if (bagOfCerts.Count > 0)
system\security\cryptography\x509\x509utils.cs (1)
306if (extraStore != null && extraStore.Count > 0)
system\security\cryptography\xml\signedxml.cs (1)
471if (m_x509Collection.Count > 0) {
System.ServiceModel (57)
System\ServiceModel\Channels\HttpsChannelFactory.cs (2)
104if (certificateIdentity.Certificates.Count > 1) 156for (int i = 0; i < certificateCollection.Count; i++)
System\ServiceModel\Channels\TransportSecurityHelpers.cs (1)
142Fx.Assert(remoteCertificateIdentity.Certificates.Count <= 1,
System\ServiceModel\Configuration\IdentityElement.cs (1)
115this.Certificate.EncodedValue = Convert.ToBase64String(certs.Export(certs.Count == 1 ? X509ContentType.SerializedCert : X509ContentType.SerializedStore));
System\ServiceModel\Description\ClientClassGenerator.cs (11)
513if ((endMethod.Parameters.Count == 1) && (endMethod.ReturnType.BaseType == voidTypeRef.BaseType)) 546for (int i = 0; i < endMethod.Parameters.Count; i++) 586int index = endMethod.Parameters.Count - 1; 669for (int i = 0; i < beginMethod.Parameters.Count - 2; i++) 682for (int i = beginMethod.Parameters.Count - 2; i < beginMethod.Parameters.Count; i++) 718for (int i = 0; i < endMethod.Parameters.Count; i++) 756if (retArray.Initializers.Count > 0) 851for (int i = 0; i < beginMethod.Parameters.Count - 2; i++) 871if (invokeAsyncInValues.Initializers.Count > 0) 899for (int i = 0; i < eventAsyncMethod.Parameters.Count - 1; i++)
System\ServiceModel\Description\ConfigLoader.cs (2)
92if (collection.Count == 0) 112if (collection.Count == 0)
System\ServiceModel\Description\DataContractSerializerOperationGenerator.cs (2)
250if (yTypeArgs.Count == xTypeArgs.Count)
System\ServiceModel\Description\MessageContractImporter.cs (13)
402if (wsdlMessage.Parts.Count > 0) 430if (messageParts.Count == 1) 476if (wsdlMessage.Parts.Count == 1) 626if (faultMessage.Parts.Count != 1) 669if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 694if (rootSequence != null && rootSequence.Items.Count == 1 && rootSequence.Items[0] is XmlSchemaElement) 868if (xsd.Items.Count > 0) 1000if (encodedSchemas.Count > 0) 1007if (literalSchemas.Count > 0) 1327messageParts = new string[wsdlMessage.Parts.Count]; 1613for (int i = 0; i < rootSequence.Items.Count; i++) 1664MessagePartDescription[] parts = new MessagePartDescription[rootSequence.Items.Count]; 1666for (int i = 0; i < rootSequence.Items.Count; i++)
System\ServiceModel\Description\OperationGenerator.cs (3)
514for (int i = index; i < parameters.Count; i++) 756if (localAttributes != null && localAttributes.Count > 0) 838if (otherCtor.Parameters.Count > 0)
System\ServiceModel\Description\ServiceMetadataExtension.cs (1)
1265if (wsdl.Services.Count > 0)
System\ServiceModel\Description\SoapHelper.cs (1)
193for (int i = extensions.Count - 1; i >= 0; i--)
System\ServiceModel\Description\WsdlHelper.cs (4)
73WsdlNS.ServiceDescription singleWsdl = wsdls.First(wsdl => wsdl.PortTypes.Count > 0); 110if (wsdl.Services.Count > 0) 212for (int i = 0; i < extensions.Count; i++) 226IEnumerable<WsdlNS.ServiceDescription> contractWsdls = wsdls.Where(serviceDescription => serviceDescription.PortTypes.Count > 0);
System\ServiceModel\Description\WsdlImporter.cs (1)
1219else if (wsdlOperationMessage.Operation.Messages.Count == 1)
System\ServiceModel\Description\XmlSerializerOperationBehavior.cs (3)
1034if (member.XmlAttributes.XmlElements == null || member.XmlAttributes.XmlElements.Count == 0) 1062(xmlAttributes.XmlAnyElements == null || xmlAttributes.XmlAnyElements.Count == 0) && 1068(xmlAttributes.XmlElements == null || xmlAttributes.XmlElements.Count == 0) &&
System\ServiceModel\Security\SecurityUtils.cs (3)
1499for (int i = 0; i < certificates.Count; ++i) 2169if (certs.Count == 1) 2176storeName, storeLocation, findType, findValue, target, certs.Count));
System\ServiceModel\Security\WSTrustServiceContract.cs (5)
2007if (context.WsdlPort.Service.ServiceDescription.Types.Schemas.Count == 0) 2144if (message.Parts.Count != 1) 2147SR.GetString(SR.ID3144, portType.Name, op.Name, message.Name, message.Parts.Count)); 2153if (message.Parts.Count != 1) 2156SR.GetString(SR.ID3144, portType.Name, op.Name, message.Name, message.Parts.Count));
System\ServiceModel\X509CertificateEndpointIdentity.cs (4)
41for (int i = 0; i < supportingCertificates.Count; ++i) 60if (this.certificateCollection.Count == 0) 72if (this.certificateCollection.Count == 0) 88for (int i = 0; i < certificateCollection.Count; ++i)
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
778if (sequence.Items.Count > 0)
System.Web (17)
Compilation\AssemblyBuilder.cs (1)
1094for (int i=results.Errors.Count-1; i>=0; i--) {
Compilation\BuildProvidersCompiler.cs (2)
316if (_parserErrors != null && _parserErrors.Count > 0) { 326for (int i = 1; i < _parserErrors.Count; i++) {
Compilation\ObjectFactoryCodeDomTreeGenerator.cs (2)
150for(var i = 0; i < ccu.Namespaces.Count; i++) { 152for(var n = 0; n < ns.Types.Count; n++) {
ErrorFormatter.cs (1)
1638if (results.Errors.Count == 0 && results.NativeCompilerReturnValue != 0) {
Security\ADMembershipProvider.cs (2)
4420if (directoryEntry.Properties[propertyName].Count == 0) 4422if (directoryEntry.Properties["distinguishedName"].Count != 0)
UI\TemplateParser.cs (2)
210get { return _parserErrors != null && _parserErrors.Count > 0; } 835for (int i = 1; i < ParserErrors.Count; i++) {
UI\WebControls\LoginView.cs (1)
237if (0 <= roleGroupIndex && roleGroupIndex < roleGroups.Count) {
UI\WebControls\MailDefinition.cs (1)
281if (EmbeddedObjects.Count > 0) {
UI\WebParts\WebPartConnection.cs (2)
224if (_transformers == null || _transformers.Count == 0) { 397if (Transformers.Count == 0) {
UI\WebParts\WebPartManager.cs (3)
1494WebPartConnection[] connections = new WebPartConnection[StaticConnections.Count + DynamicConnections.Count]; 1496DynamicConnections.CopyTo(connections, StaticConnections.Count);
System.Web.DataVisualization (29)
Common\General\Axis.cs (3)
4051 if(this.ScaleSegments.Count == 0) 4079 if(segmentIndex < this.ScaleSegments.Count - 1 && 4164 if( (this.IntervalAutoMode == IntervalAutoMode.VariableCount || this.ScaleSegments.Count > 0) &&
Common\General\AxisScaleBreaks.cs (10)
551 if(axisSegments.Count >= 1) 589for (int segmentIndex = 1; segmentIndex < axisSegments.Count; segmentIndex++) 643 index == (axisSegments.Count - 1) ) 682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 686 for(int index = 0; index < axisSegments.Count; index++) 696 if(index < (axisSegments.Count - 1) ) 713 for(int index = 0; index < axisSegments.Count; index++) 735 for(int index = maxSizeIndex + 1; index < axisSegments.Count; index++) 810 if(axisSegments.Count > 0 && numberOfSegments > 0) 911 if( (axisSegments.Count - 1) >= this._maximumNumberOfBreaks)
Common\General\AxisScaleSegments.cs (2)
976 for(int index = 0; index < this.Count; index++) 1002 else if(index == this.Count - 1)
Common\General\ChartArea.cs (6)
2177useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2202useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2227useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2254useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2322useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2356for (int segmentIndex = 0; segmentIndex < (currentAxis.ScaleSegments.Count - 1); segmentIndex++)
Common\General\ChartAreaAxes.cs (5)
352 if(currentAxis.ScaleSegments.Count > 0) 361 if(currentAxis.minimum > currentAxis.ScaleSegments[currentAxis.ScaleSegments.Count - 1].ScaleMaximum) 363 currentAxis.minimum = currentAxis.ScaleSegments[currentAxis.ScaleSegments.Count - 1].ScaleMaximum; 377 useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 398 if(segmentIndex < (currentAxis.ScaleSegments.Count - 1) &&
Common\General\Label.cs (1)
1569if (_axis.ScaleSegments.Count > 0)
Common\General\SmartLabels.cs (2)
1346 && currentAxis.ScaleSegments.Count > 0) 1348 for(int index = 0; index < (currentAxis.ScaleSegments.Count - 1); index++)
System.Web.Extensions (12)
Compilation\WCFBuildProvider.cs (1)
376if (codeNamespace.Types.Count > 0)
Compilation\WCFModel\AsmxEndpointPickerExtension.cs (1)
63if (service.Ports.Count != 2) continue;
Compilation\WCFModel\WsdlInspector.cs (6)
111Operation[] operationsX = new Operation[x.Operations.Count]; 115Operation[] operationsY = new Operation[y.Operations.Count]; 173OperationFault[] faultsX = new OperationFault[x.Faults.Count]; 177OperationFault[] faultsY = new OperationFault[y.Faults.Count]; 225MessagePart[] partsX = new MessagePart[x.Parts.Count]; 229MessagePart[] partsY = new MessagePart[y.Parts.Count];
Script\Services\WebServiceTypeData.cs (4)
126if (rootSequence.Items == null || rootSequence.Items.Count == 0) 128if (rootSequence.Items.Count != 1) 178&& restriction.Facets.Count > 0); 275if (annotation != null && annotation.Items != null && annotation.Items.Count > 0 && annotation.Items[0] is XmlSchemaAppInfo) {
System.Web.Mobile (4)
Mobile\MobileErrorInfo.cs (1)
68if (errors != null && errors.Count >= 1)
UI\MobileControls\Design\ListDesigner.cs (1)
184Debug.Assert(_designerVerbs.Count == 2);
UI\MobileControls\Design\ObjectListDesigner.cs (1)
503Debug.Assert(_designerVerbs.Count == 2);
UI\MobileControls\Design\StyleSheetDesigner.cs (1)
1162Debug.Assert(_designerVerbs.Count == 2);
System.Web.Services (53)
System\Web\Services\Description\HttpProtocolImporter.cs (5)
69if (OperationBinding.Output.Extensions.Count == 0) { 130string[] parameterTypeNames = new string[parameters.Count]; 131string[] parameterNames = new string[parameters.Count]; 133for (int i = 0; i < parameters.Count; i++) { 166for (int i = 0; i < parameters.Count; i++) {
System\Web\Services\Description\MimeAnyImporter.cs (1)
21if (ImportContext.OperationBinding.Output.Extensions.Count == 0) return null;
System\Web\Services\Description\MimeTextImporter.cs (5)
31if (mimeTextBinding.Matches.Count == 0) { 61string[] fieldTypeNames = new string[matches.Count]; 62for (int i = 0; i < matches.Count; i++) { 104if (match.Matches.Count > 0) { 116if (match.Matches.Count == 0 && match.Type.Length > 0) {
System\Web\Services\Description\MimeXmlImporter.cs (1)
48switch (ImportContext.OutputMessage.Parts.Count) {
System\Web\Services\Description\ProtocolImporter.cs (3)
296return codeNamespace.Comments.Count > 0; 389for (int i = 0; i < portType.Operations.Count; i++) { 449if (portType.Operations.Count == 0)
System\Web\Services\Description\ProtocolReflector.cs (1)
441if (warnings.Count > 0) {
System\Web\Services\Description\ServiceDescription.cs (7)
443for (int i = 0; i < Types.Schemas.Count; i++) { 449for (int i = 0; i < Imports.Count; i++) { 1294for (int i = 0; i < parts.Count; i++) { 1368return (schemas != null && schemas.Count > 0) || 1369(extensions != null && extensions.Count > 0); 1796if (Count > 1 || (Count == 1 && value.GetType() == List[0].GetType()))
System\Web\Services\Description\ServiceDescriptionImporter.cs (2)
502if (abstractSchemas.Count > 0) { 510if (concreteSchemas.Count > 0) {
System\Web\Services\Description\ServiceDescriptionReflector.cs (3)
199if (ServiceDescriptions.Count > 1) { 205else if (ServiceDescription.Types.Schemas.Count > 0) { 206XmlSchema[] descriptionSchemas = new XmlSchema[ServiceDescription.Types.Schemas.Count];
System\Web\Services\Description\SoapProtocolImporter.cs (3)
796if (paramsMetadata[j].Count > 0 && !ServiceImporter.CodeGenerator.Supports(GeneratorSupport.ParameterAttributes)) { 824if (mainCodeMethod.ReturnTypeCustomAttributes.Count != 0 && !ServiceImporter.CodeGenerator.Supports(GeneratorSupport.ReturnTypeAttributes)) { 1108parts = new MessagePart[message.Parts.Count];
System\Web\Services\Description\WebServicesInteroperability.cs (10)
52int count = violations.Count; 54return count == violations.Count; 82int count = violations.Count; 84return count == violations.Count; 176if (bodyParts == 0 && message != null && message.Parts.Count > 1) { 196if (bodyParts == 0 && message != null && message.Parts.Count > 1) { 387if (message.Parts == null || message.Parts.Count == 0) { 399for (int i = 0; i < message.Parts.Count; i++) { 419for (int i = 0; i < extensions.Count; i++) { 791this.end = list.Count - 1;
System\Web\Services\Discovery\DiscoveryClientProtocol.cs (1)
342for (int i = 0; i < results.Results.Count; i++) {
System\Web\Services\Discovery\DynamicVirtualDiscoSearcher.cs (1)
262Bindings = new string[entry.Properties["ServerBindings"].Count];
System\Web\Services\Protocols\ClientProtocol.cs (1)
851if (clientCertificates != null && clientCertificates.Count > 0) {
System\Web\Services\Protocols\DiscoveryServerProtocol.cs (2)
72for (int i = 1; i < reflector.ServiceDescriptions.Count; i++) { 153if (description.Types.Schemas.Count == 0) {
System\Web\Services\Protocols\SoapHeader.cs (7)
292if (headers.Count == 0) return; 309for (int i = 0; i < headers.Count; i++) { 363for (int i = 0; i < headers.Count; i++) { 391bool[] headerHandled = new bool[headers.Count]; 398for (int j = 0; j < headers.Count; j++) { 410for (int j = 0; j < headers.Count; j++) { 457for (int i = 0; i < headers.Count; i++) {
System.Windows.Forms (2)
winforms\Managed\System\WinForms\PropertyGrid.cs (2)
2153verbs = new DesignerVerb[mcs.Verbs.Count]; 2168verbs = new DesignerVerb[designer.Verbs.Count];
System.Windows.Forms.DataVisualization (29)
Common\General\Axis.cs (3)
4051 if(this.ScaleSegments.Count == 0) 4079 if(segmentIndex < this.ScaleSegments.Count - 1 && 4164 if( (this.IntervalAutoMode == IntervalAutoMode.VariableCount || this.ScaleSegments.Count > 0) &&
Common\General\AxisScaleBreaks.cs (10)
551 if(axisSegments.Count >= 1) 589for (int segmentIndex = 1; segmentIndex < axisSegments.Count; segmentIndex++) 643 index == (axisSegments.Count - 1) ) 682 double minSize = Math.Min(this._minSegmentSize, Math.Floor(100.0 / axisSegments.Count)); 686 for(int index = 0; index < axisSegments.Count; index++) 696 if(index < (axisSegments.Count - 1) ) 713 for(int index = 0; index < axisSegments.Count; index++) 735 for(int index = maxSizeIndex + 1; index < axisSegments.Count; index++) 810 if(axisSegments.Count > 0 && numberOfSegments > 0) 911 if( (axisSegments.Count - 1) >= this._maximumNumberOfBreaks)
Common\General\AxisScaleSegments.cs (2)
976 for(int index = 0; index < this.Count; index++) 1002 else if(index == this.Count - 1)
Common\General\ChartArea.cs (6)
2177useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2202useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2227useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2254useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2322useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 2356for (int segmentIndex = 0; segmentIndex < (currentAxis.ScaleSegments.Count - 1); segmentIndex++)
Common\General\ChartAreaAxes.cs (5)
352 if(currentAxis.ScaleSegments.Count > 0) 361 if(currentAxis.minimum > currentAxis.ScaleSegments[currentAxis.ScaleSegments.Count - 1].ScaleMaximum) 363 currentAxis.minimum = currentAxis.ScaleSegments[currentAxis.ScaleSegments.Count - 1].ScaleMaximum; 377 useScaleSegments = (currentAxis.ScaleSegments.Count > 0); 398 if(segmentIndex < (currentAxis.ScaleSegments.Count - 1) &&
Common\General\Label.cs (1)
1569if (_axis.ScaleSegments.Count > 0)
Common\General\SmartLabels.cs (2)
1346 && currentAxis.ScaleSegments.Count > 0) 1348 for(int index = 0; index < (currentAxis.ScaleSegments.Count - 1); index++)
System.Workflow.Activities (62)
Role\ADRole.cs (1)
228entry.Properties["objectSid"].Count != 0)
Role\DirectoryRedirect.cs (1)
85System.Diagnostics.Debug.Assert(values.Count == 1);
Rules\CodeDomDecompiler.cs (1)
240if (typeRef.TypeArguments != null && typeRef.TypeArguments.Count > 0)
Rules\Expressions.cs (54)
1292if ((invokeExpr.Method.TypeArguments != null) && (invokeExpr.Method.TypeArguments.Count > 0)) 1329for (int i = 0; i < invokeExpr.Parameters.Count; ++i) 1492for (int i = 0; i < invokeExpr.Parameters.Count; ++i) 1535if (invokeExpr.Parameters != null && invokeExpr.Parameters.Count > 0) 1537int actualArgCount = invokeExpr.Parameters.Count; 1561outArgumentResults = new RuleExpressionResult[invokeExpr.Parameters.Count]; 1622for (int i = 0; i < invokeExpr.Parameters.Count; ++i) 1656for (int i = 0; i < invokeExpr.Parameters.Count; ++i) 1708if (invokeExpr.Parameters.Count != newMethod.Parameters.Count) 1710for (int i = 0; i < invokeExpr.Parameters.Count; ++i) 1964if (typeRef1.TypeArguments.Count != typeRef2.TypeArguments.Count) 1966for (int i = 0; i < typeRef1.TypeArguments.Count; ++i) 2282if (indexerExpr.Indices == null || indexerExpr.Indices.Count == 0) 2317for (int i = 0; i < indexerExpr.Indices.Count; ++i) 2469for (int i = 0; i < indexerExpr.Indices.Count; ++i) 2511int actualArgCount = indexerExpr.Indices.Count; 2573if (indexerExpr.Indices == null || indexerExpr.Indices.Count == 0) 2584for (int i = 1; i < indexerExpr.Indices.Count; ++i) 2598CodeExpression[] indices = new CodeExpression[indexerExpr.Indices.Count]; 2614if (indexerExpr.Indices.Count != indexerComperand.Indices.Count) 2617for (int i = 0; i < indexerExpr.Indices.Count; ++i) 2659if (arrayIndexerExpr.Indices == null || arrayIndexerExpr.Indices.Count == 0) 2701if (arrayIndexerExpr.Indices.Count != rank) 2711for (int i = 0; i < arrayIndexerExpr.Indices.Count; ++i) 2803for (int i = 0; i < arrayIndexerExpr.Indices.Count; ++i) 2823int actualArgCount = arrayIndexerExpr.Indices.Count; 2852if (arrayIndexerExpr.Indices == null || arrayIndexerExpr.Indices.Count == 0) 2863for (int i = 1; i < arrayIndexerExpr.Indices.Count; ++i) 2877CodeExpression[] indices = new CodeExpression[arrayIndexerExpr.Indices.Count]; 2893if (arrayIndexerExpr.Indices.Count != indexerComperand.Indices.Count) 2896for (int i = 0; i < arrayIndexerExpr.Indices.Count; ++i) 2948for (int i = 0; i < createExpression.Parameters.Count; ++i) 3049if (createExpression.Parameters != null && createExpression.Parameters.Count > 0) 3051int actualArgCount = createExpression.Parameters.Count; 3130for (int i = 0; i < createExpression.Parameters.Count; ++i) 3152for (int i = 0; i < createExpression.Parameters.Count; ++i) 3198if (createExpression.Parameters.Count != createComperand.Parameters.Count) 3200for (int i = 0; i < createExpression.Parameters.Count; ++i) 3286for (int i = 0; i < createExpression.Initializers.Count; ++i) 3351if ((size >= 0) && (createExpression.Initializers.Count > size)) 3353message = string.Format(CultureInfo.CurrentCulture, Messages.InitializerCountMismatch, createExpression.Initializers.Count, size); 3418size = createExpression.Initializers.Count; 3422for (int i = 0; i < createExpression.Initializers.Count; ++i) 3445else if ((createExpression.Size != 0) || (createExpression.Initializers.Count == 0)) 3448if (createExpression.Initializers.Count > 0) 3451for (int i = 0; i < createExpression.Initializers.Count; ++i) 3511if (createExpression.Initializers.Count != createComperand.Initializers.Count) 3513for (int i = 0; i < createExpression.Initializers.Count; ++i)
Rules\RuleAttributes.cs (2)
180for (int i = 0; i < argumentExpressions.Count; ++i) 234end = argumentExpressions.Count;
Rules\RuleValidation.cs (3)
3721if (typeRef.TypeArguments.Count > 0) 3723Type[] typeArguments = new Type[typeRef.TypeArguments.Count]; 3724for (int i = 0; i < typeRef.TypeArguments.Count; ++i)
System.Workflow.ComponentModel (18)
AuthoringOM\Compiler\TypeSystem\DesignTimeType.cs (3)
232if (declaration.BaseTypes.Count > 1) 928if ((codeTypeReference.TypeArguments != null) && (codeTypeReference.TypeArguments.Count > 0)) 931typeName.Append(string.Format(CultureInfo.InvariantCulture, "`{0}", new object[] { codeTypeReference.TypeArguments.Count }));
AuthoringOM\Compiler\TypeSystem\Helper.cs (2)
150String[] argumentNames = new String[codeAttribute.Arguments.Count]; 151object[] argumentValues = new object[codeAttribute.Arguments.Count];
AuthoringOM\Compiler\TypeSystem\MethodInfo.cs (4)
52ParameterInfo[] paramArray = new ParameterInfo[parameters.Count]; 54for (int index = 0; index < parameters.Count; index++) 212ParameterInfo[] paramArray = new ParameterInfo[parameters.Count]; 214for (int index = 0; index < parameters.Count; index++)
AuthoringOM\Compiler\TypeSystem\PropertyInfo.cs (4)
316ParameterInfo[] paramArray = new ParameterInfo[this.IsGetter ? parameters.Count : parameters.Count + 1]; 318for (int index = 0; index < parameters.Count; index++) 326paramArray[parameters.Count] = new DesignTimeParameterInfo(valueParameter, 0, this.property);
AuthoringOM\Compiler\XomlCompilerHelpers.cs (1)
652if (codeCollection != null && codeCollection.Count != 0)
AuthoringOM\Design\DesignerInterfaces.cs (1)
1020if (this.Count == 0)
AuthoringOM\Serializer\ActivityTypeCodeDomSerializer.cs (2)
67if (method != null && method.Name.Equals(_initMethodName) && method.Parameters.Count == 0) 92CodeStatement[] codeStatements = new CodeStatement[method.Statements.Count];
AuthoringOM\Serializer\CodeTypeReferenceSerializer.cs (1)
130if ((reference.TypeArguments != null) && (reference.TypeArguments.Count > 0))
System.Xml (272)
System\Xml\Schema\CompiledidEntityConstraint.cs (3)
57Debug.Assert(fields.Count > 0); 58this.fields = new Asttree[fields.Count]; 59for(int idxField = 0; idxField < fields.Count; idxField ++) {
System\Xml\Schema\FacetChecker.cs (1)
740for (int i = 0; i < facets.Count; ++i) {
System\Xml\Schema\Inference\Infer.cs (13)
469for (int i = 0; i < parentSchema.Includes.Count; ++i) 572for (int i = 0; i < parentSchema.Includes.Count; ++i) 987while (++lastUsedSeqItem < ((XmlSchemaSequence)ct.Particle).Items.Count) 1060if (xss.Items.Count < 1 && !bCreatingNewType) 1070for (int i = 0; i < xsch.Items.Count; ++i) 1127while (iSeqItem < xss.Items.Count) 1138for (int i = 0; i < minOccursCandidates.Count; ++i) 1149for (int i = 0; i < minOccursCandidates.Count; ++i) 1188for (int i = 0; i < xss.Items.Count; ++i) 1296for (int i = 0; i < scExtension.Attributes.Count; ++i) //since simpleContent is being cleared 1356for (int i = 0; i < elements.Count; ++i) 1388for (int i = 0; i < elements.Count; ++i) 1416for (int i = 0; i < attributes.Count; ++i)
System\Xml\Schema\Preprocessor.cs (22)
226for (int i = 0; i < schema.Includes.Count; ++i) { 243for (int i = 0; i < schema.Includes.Count; ++i) { 427for (int i = 0; i < schema.Includes.Count; ++i) { 492for (int i = 0; i < schema.Includes.Count; ++i) { 577for (int i = 0; i < schema.Includes.Count; i++) { 623for (int j = 0; j < redefine.Items.Count; ++j) { 637for (int i = 0; i < schemaItems.Count; ++i) { 734for (int i = 0; i < items.Count; ++i) { 834for (int i = 0; i < schema.Includes.Count; ++i) { 891for (int i = 0; i < items.Count; ++i) { 926for (int i = 0; i < attributeGroup.Attributes.Count; ++i) { 1194for (int i = 0; i < element.Constraints.Count; ++i) { 1225if (constraint.Fields.Count == 0) { 1243for (int i = 0; i < constraint.Fields.Count; ++i) { 1291for (int i = 0; i < restriction.Facets.Count; ++i) { 1338int baseTypeCount = union1.BaseTypes.Count; 1349for (int i = 0; i < union1.BaseTypes.Count; ++i) { 1583for (int i = 0; i < items.Count; ++i) { 1600for (int i = 0; i < items.Count; ++i) { 1613for (int i = 0; i < items.Count; ++i) { 1647for (int i = 0; i < attributes.Count; ++i) { 1783for (int i = 0; i < annotation.Items.Count; ++i) {
System\Xml\Schema\SchemaCollectionCompiler.cs (57)
79for (int i = 0; i < schema.Includes.Count; ++i) { 90for (int j = 0; j < rdef.Items.Count; ++j) { 121for (int i = 0; i < schema.Items.Count; ++i) { 308for (int i = 0; i < element.Constraints.Count; ++i) { 315for (int i = 0; i < attributes.Count; ++i) { 334for (int i = 0; i < particles.Count; ++i) { 361for (int j = 0; j < g.Choice.Items.Count; ++j) { 529for (int i = 0; i < mainBaseTypes.Count; ++i) { 844if (choice != null && choice.Items.Count == 0) { 924else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) { 937for (int i = 0; i < groupBase.Items.Count; ++i) { 945if (all.Items.Count > 0) { 952for (int i = 0; i < all.Items.Count; ++i) { 960if (all.Items.Count == 0) { 963else if (root && all.Items.Count == 1) { 970else if (!root && all.Items.Count == 1 && all.MinOccurs == decimal.One && all.MaxOccurs == decimal.One) { 984if (choice.Items.Count > 0) { 988for (int i = 0; i < choice.Items.Count; ++i) { 993for (int j = 0; j < particleChoice.Items.Count; ++j) { 1004if (!root && choice.Items.Count == 0) { 1010else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1019if (sequence.Items.Count > 0) { 1023for (int i = 0; i < sequence.Items.Count; ++i) { 1028for (int j = 0; j < particleSequence.Items.Count; ++j) { 1039if (sequence.Items.Count == 0) { 1042else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 1146for (int i = 0; i < derivedGroupBase.Items.Count; ++i) { 1158for (int i = 0; i < baseGroupBase.Items.Count; ++i) { 1182if (!IsValidOccurrenceRangeRestriction(derivedGroupBase, baseGroupBase) || derivedGroupBase.Items.Count > baseGroupBase.Items.Count) { 1186for (int i = 0; i < baseGroupBase.Items.Count; ++i) { 1188if ((count < derivedGroupBase.Items.Count) && IsValidRestriction((XmlSchemaParticle)derivedGroupBase.Items[count], baseParticle)) { 1195if (count < derivedGroupBase.Items.Count) { 1202if (!IsValidOccurrenceRangeRestriction(derivedSequence, baseAll) || derivedSequence.Items.Count > baseAll.Items.Count) { 1205BitSet map = new BitSet(baseAll.Items.Count); 1206for (int j = 0; j < derivedSequence.Items.Count; ++j) { 1220for (int i = 0; i < baseAll.Items.Count; i++) { 1231if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) { 1234for (int i = 0; i < derivedSequence.Items.Count; ++i) { 1243for (int i = 0; i < sequence.Items.Count; ++i) { 1270for (int i = 0; i < collection.Count; i++) { 1289if (((XmlSchemaChoice)particle).Items.Count == 0) { 1296for (int i = 0; i < choice.Items.Count; ++i) { 1317if (collection.Count == 0) { 1323for (int i = 0; i < collection.Count; ++i) { 1372for (int i = 0; i < attributeGroup.Attributes.Count; ++i) { 1418for (int i = 0; i < attributes.Count; ++i) { 1768if (ic.Fields.Count != xi.Fields.Count) { 1901CompiledIdentityConstraint[] compiledConstraints = new CompiledIdentityConstraint[constraints.Count]; 1903for (int i = 0; i < constraints.Count; ++i) { 1944AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.MinOccurs == decimal.Zero); 1945for (int i = 0; i < all.Items.Count; ++i) { 2076for (int i = 0; i < particles.Count; ++i) { 2128for (int i = 0; i < particles.Count; ++i) {
System\Xml\Schema\SchemaCollectionpreProcessor.cs (23)
66for (int i = 0; i < schema.Includes.Count; ++i) { 82for (int i = 0; i < schema.Includes.Count; ++i) { 125for (int i = 0; i < schema.Includes.Count; ++i) { 156for (int j = 0; j < include.Schema.Includes.Count; ++j) { 236for (int i = 0; i < schema.Includes.Count; ++i) { 306for (int i = 0; i < schema.Includes.Count; ++i) { 397for (int i = 0; i < schema.Includes.Count; ++i) { 405for (int j = 0; j < redefine.Items.Count; ++j) { 439for (int i = 0; i < schema.Items.Count; ++i) { 489for (int i = 0; i < redefine.Items.Count; ++i) { 586for (int i = 0; i < items.Count; ++i) { 619for (int i = 0; i < attributeGroup.Attributes.Count; ++i) { 883for (int i = 0; i < element.Constraints.Count; ++i) { 913if (constraint.Fields.Count == 0) { 931for (int i = 0; i < constraint.Fields.Count; ++i) { 979for (int i = 0; i < restriction.Facets.Count; ++i) { 1026int baseTypeCount = union1.BaseTypes.Count; 1036for (int i = 0; i < union1.BaseTypes.Count; ++i) { 1270for (int i = 0; i < schemaAll.Items.Count; ++i) { 1288for (int i = 0; i < choices.Count; ++i) { 1301for (int i = 0; i < sequences.Count; ++i) { 1335for (int i = 0; i < attributes.Count; ++i) { 1423for (int i = 0; i < annotated.Annotation.Items.Count; ++i) {
System\Xml\Schema\SchemaSetCompiler.cs (57)
309for (int i = 0; i < element.Constraints.Count; ++i) { 317for (int i = 0; i < attributes.Count; ++i) { 343for (int i = 0; i < groupBase.Items.Count; ++i) { 596for (int i = 0; i < mainBaseTypes.Count; ++i) { 937if (choice != null && choice.Items.Count == 0) { 1022else if (groupBase is XmlSchemaChoice && groupBase.Items.Count == 0) { 1037for (int i = 0; i < groupBase.Items.Count; ++i) { 1045if (all.Items.Count > 0) { 1050for (int i = 0; i < all.Items.Count; ++i) { 1058if (all.Items.Count == 0) { 1072if (choice.Items.Count > 0) { 1077for (int i = 0; i < choice.Items.Count; ++i) { 1082for (int j = 0; j < p1Choice.Items.Count; ++j) { 1093if (!root && choice.Items.Count == 0) { 1099else if (!root && choice.Items.Count == 1 && choice.MinOccurs == decimal.One && choice.MaxOccurs == decimal.One) { 1108if (sequence.Items.Count > 0) { 1113for (int i = 0; i < sequence.Items.Count; ++i) { 1118for (int j = 0; j < p1Sequence.Items.Count; ++j) { 1129if (sequence.Items.Count == 0) { 1132else if (!root && sequence.Items.Count == 1 && sequence.MinOccurs == decimal.One && sequence.MaxOccurs == decimal.One) { 1151int count = items.Count; 1160int count = items.Count; 1173int count = items.Count; 1275else if (derivedParticle is XmlSchemaSequence || (derivedParticle is XmlSchemaAll && ((XmlSchemaGroupBase)derivedParticle).Items.Count ==1)) { 1357for (int i = 0; i < derivedGroupBase.Items.Count; ++i) { 1451for (int i = 0; i < derivedChoice.Items.Count; ++i) { 1464if (derivedGroupBase.Items.Count > baseGroupBase.Items.Count) { 1469for (int i = 0; i < baseGroupBase.Items.Count; ++i) { 1471if ((count < derivedGroupBase.Items.Count) 1482if (count < derivedGroupBase.Items.Count) { 1489if (!IsValidOccurrenceRangeRestriction(derivedSequence, baseAll) || derivedSequence.Items.Count > baseAll.Items.Count) { 1492BitSet map = new BitSet(baseAll.Items.Count); 1493for (int j = 0; j < derivedSequence.Items.Count; ++j) { 1507for (int i = 0; i < baseAll.Items.Count; i++) { 1517minOccurs = derivedSequence.MinOccurs * derivedSequence.Items.Count; 1522maxOccurs = derivedSequence.MaxOccurs * derivedSequence.Items.Count; 1524if (!IsValidOccurrenceRangeRestriction(minOccurs, maxOccurs, baseChoice.MinOccurs, baseChoice.MaxOccurs) || derivedSequence.Items.Count > baseChoice.Items.Count) { 1527for (int i = 0; i < derivedSequence.Items.Count; ++i) { 1543for (int i = 0; i < collection.Count; i++) { 1564if (choice.Items.Count == 0) { 1570for (int i = 0; i < choice.Items.Count; ++i) { 1591if (collection.Count == 0) { 1597for (int i = 0; i < collection.Count; ++i) { 1648for (int i = 0; i < attributeGroup.Attributes.Count; ++i) { 1697for (int i = 0; i < attributes.Count; ++i) { 2114if (ic.Fields.Count != xi.Fields.Count) { 2256CompiledIdentityConstraint[] compiledConstraints = new CompiledIdentityConstraint[constraints.Count]; 2258for (int i = 0; i < constraints.Count; ++i) { 2299AllElementsContentValidator contentValidator = new AllElementsContentValidator(complexType.ContentType, all.Items.Count, all.MinOccurs == decimal.Zero); 2300for (int i = 0; i < all.Items.Count; ++i) { 2433for (int i = 0; i < particles.Count; ++i) { 2485for (int i = 0; i < particles.Count; ++i) { 2498for (int i = 0; i < particles.Count; ++i) {
System\Xml\Schema\XmlSchema.cs (3)
551for (int i = 0; i < this.items.Count; ++i) { 574for (int i = 0; i < this.includes.Count; ++i) { 629for (int i = 0; i < schema.Includes.Count; ++i) {
System\Xml\Schema\XmlSchemaAll.cs (1)
30get { return base.IsEmpty || items.Count == 0; }
System\Xml\Schema\XmlSchemaComplexType.cs (4)
439for (int i = 0; i < attributes.Count; i++) { 462for (int i = 0; i < groupBaseParticles.Count; i++) { 520while (i < groupBase.Items.Count && !foundRef) { 549for (int i = 0; i < attributes.Count; ++i) {
System\Xml\Schema\XmlSchemaElement.cs (1)
284get { return constraints != null && constraints.Count > 0; }
System\Xml\Schema\XmlSchemaSequence.cs (1)
33get { return base.IsEmpty || items.Count == 0; }
System\Xml\Schema\XsdBuilder.cs (10)
1350if (builder.element.Constraints.Count != 0) { 1372builder.simpleContentRestriction.Attributes.Count != 0 || 1374builder.simpleContentRestriction.Facets.Count != 0 1490if (builder.element.Constraints.Count != 0) { 1528(builder.complexType.Particle != null || builder.complexType.Attributes.Count != 0 || builder.complexType.AnyAttribute != null) 1586(builder.complexType.Particle != null || builder.complexType.Attributes.Count != 0 || builder.complexType.AnyAttribute != null) 1942if (builder.simpleContentRestriction.Attributes.Count != 0 || (builder.simpleContentRestriction.AnyAttribute != null)) { 2182(complexType.Attributes.Count != 0 || complexType.AnyAttribute != null) || 2191(complexContentExtension.Attributes.Count != 0 || complexContentExtension.AnyAttribute != null) 2199(complexContentRestriction.Attributes.Count != 0 || complexContentRestriction.AnyAttribute != null)
System\Xml\Serialization\CodeExporter.cs (2)
251if (attribute.Arguments.Count > 0) { 334if (codeClass.BaseTypes.Count == 0)
System\Xml\Serialization\Compiler.cs (1)
200if (results.Errors.Count > 0) {
System\Xml\Serialization\ImportContext.cs (2)
243items += s.Items.Count; 373for (int i = 0; i < attributes.Count; i++) {
System\Xml\Serialization\SchemaObjectWriter.cs (11)
84if (s.Items.Count == 0) 90if (a.Items.Count == 0) 96if (c.Items.Count == 0) 112for (int i = 0; i < items.Count; i++) { 239for (int i = 0; i < items.Count; i++) { 412for (int ia = 0; ia < a.Count; ia++) { 543for (int i = 0; i < facets.Count; i++) { 868for (int ia = 0; ia < a.Count; ia++) { 917for (int ia = 0; ia < a.Count; ia++) { 937for (int ia = 0; ia < a.Count; ia++) { 984for (int ia = 0; ia < a.Count; ia++) {
System\Xml\Serialization\SoapSchemaExporter.cs (2)
251if (choice.Items.Count > 0) group.Items.Add(choice); 329if (seq.Items.Count > 0) {
System\Xml\Serialization\SoapSchemaImporter.cs (6)
265if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaAny)) 320for (int i = 0; i < items.Count; i++) { 368for (int i = 0; i < group.Items.Count; i++) { 428for (int i = 0; i < restriction.Attributes.Count; i++) { 476if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaElement)) 570for (int i = 0; i < restriction.Facets.Count; i++) {
System\Xml\Serialization\XmlAttributes.cs (3)
61if (xmlElements.Count > 0) flags |= XmlAttributeFlags.Elements; 62if (xmlArrayItems.Count > 0) flags |= XmlAttributeFlags.ArrayItems; 63if (xmlAnyElements.Count > 0) flags |= XmlAttributeFlags.AnyElements;
System\Xml\Serialization\XmlCodeExporter.cs (2)
556if (ctor.Statements.Count == 0) codeClass.Members.Remove(ctor); 811if (attribute.Arguments.Count == 0 && attributeType == typeof(XmlElementAttribute)) return;
System\Xml\Serialization\XmlReflectionImporter.cs (23)
869for (int i = 0; i < attributes.Count; i++) 1299for (int i = 0; attributes != null && i < attributes.Count; i++) { 1417if (a.XmlText == null && a.XmlElements.Count == 0 && a.XmlAnyElements.Count == 0) 1420for (int i = 0; i < a.XmlElements.Count; i++) { 1428if (a.XmlElements.Count == 1) { 1456for (int i = 0; i < a.XmlAnyElements.Count; i++) { 1538if (a.XmlAnyElements.Count > 0) throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAnyElement, accessor.TypeDesc.FullName)); 1541if (a.XmlElements.Count > 0) throw new InvalidOperationException(Res.GetString(Res.XmlIllegalAttribute)); 1571else if (a.XmlElements.Count == 0) { 1575for (int i = 0; i < a.XmlElements.Count; i++) { 1630if (a.XmlElements.Count == 0 && a.XmlAnyElements.Count == 0) 1632for (int i = 0; i < a.XmlElements.Count; i++) { 1640if (a.XmlElements.Count == 1) { 1667for (int i = 0; i < a.XmlAnyElements.Count; i++) 1786if (a.XmlElements != null && a.XmlElements.Count > 0) { 1787if (a.XmlElements.Count > 1) { 1807if (elements != null && elements.Count >= 2 && a.XmlChoiceIdentifier == null) { 1808for (int i = 0; i < elements.Count; i++) { 1819if (choiceTypes.Contains(typeof(XmlElement)) && a.XmlAnyElements.Count > 0) { 1825if (items != null && items.Count >= 2) { 1828for (int i = 0; i < items.Count; i++) {
System\Xml\Serialization\XmlSchemaExporter.cs (5)
132if (sequence.Items.Count == 1 && sequence.Items[0] is XmlSchemaAny) { 563if (seq.Items.Count > 0) { 602if (choice.Items.Count > 0) group.Items.Add(choice); 945if (seq.Items.Count > 0) { 960if (textMapping is PrimitiveMapping && seq.Items.Count == 0) {
System\Xml\Serialization\XmlSchemaImporter.cs (14)
670for (int i = 0; i < items.Attributes.Count; i++) { 905for (int i = 0; i < group.Items.Count; i++) { 936if (!groupRepeats && !(group is XmlSchemaChoice) && group.Items.Count > 1) { 985if (GenerateOrder && groupRepeats && group.Items.Count > 1) { 989for (int i = 0; i < group.Items.Count; i++) { 1016for (int j = 0; j < schema.Items.Count; j++) { 1195if (items.Attributes != null && items.Attributes.Count > 0) return null; 1217if (item.Items.Count != 1 || !(item.Items[0] is XmlSchemaElement)) return null; 1266if ((items.Particle is XmlSchemaSequence || items.Particle is XmlSchemaAll) && items.Particle.Items.Count == 1 && items.Particle.Items[0] is XmlSchemaElement) 1287if (items.Attributes != null && items.Attributes.Count > 0) return null; 1290if (group.Items.Count != 1 || !(group.Items[0] is XmlSchemaAny)) return null; 1412if (type.Annotation.Items == null || type.Annotation.Items.Count == 0) 1463for (int i = 0; i < group.Attributes.Count; i++) { 1618for (int i = 0; i < restriction.Facets.Count; i++) {
System\Xml\Serialization\XmlSchemas.cs (5)
429bool[] matchedItems = new bool[schema.Items.Count]; 431for (int i = 0; i < schema.Items.Count; i++) { 445if (count != schema.Items.Count) { 447for (int i = 0; i < schema.Items.Count; i++) { 764this.end = list.Count - 1;
WindowsBase (5)
Base\MS\Internal\IO\Packaging\XmlDigitalSignatureProcessor.cs (2)
1210if (collection.Count > 0) 1212if (collection.Count > 1)
Base\System\IO\Packaging\PackageDigitalSignatureManager.cs (3)
910for (int i = collection.Count - 1; i >= 0; i--) 919if (collection.Count > 0) 923if (collection.Count > 0)
WsatConfig (3)
Configuration\CertificateManager.cs (3)
161if (certs == null || certs.Count == 0) 170if (certs.Count > 0 && !Utilities.SafeCompare(subjectName, "*")) 175if (certs.Count == 1)
WsatUI (1)
MMCUI\AcceptedCertificatesForm.cs (1)
44for (int i = 0; i < store.Count; i++)
XamlBuildTask (3)
Microsoft\Build\Tasks\Xaml\ClassGenerator.cs (3)
173if (attributeCollection != null && attributeCollection.Count > 0) 949if (attributeCollection != null && attributeCollection.Count > 0) 982if (codeTypeReference.TypeArguments != null && codeTypeReference.TypeArguments.Count == 0 &&