4 overrides of Count
System.Private.Xml (3)
System\Xml\Dom\XmlChildNodes.cs (1)
32public override int Count
System\Xml\Dom\XmlElementList.cs (1)
243public override int Count
System\Xml\Dom\XPathNodeList.cs (1)
24public override int Count
System.Security.Cryptography.Xml (1)
System\Security\Cryptography\Xml\CanonicalXmlNodeList.cs (1)
28public override int Count
101 references to Count
Microsoft.AspNetCore.AzureAppServices.SiteExtension.Tests (4)
TransformTest.cs (4)
24Assert.Equal(2, doc.ChildNodes.Count); 29Assert.Equal(3, envNode.ChildNodes.Count); 54Assert.Equal(2, doc.ChildNodes.Count); 59Assert.Equal(3, envNode.ChildNodes.Count);
Microsoft.Build (7)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (2)
663if (projectConfigurations == null || projectConfigurations.Count == 0) 668var graphEntryPoints = new List<ProjectGraphEntryPoint>(projectConfigurations.Count);
Construction\ProjectElement.cs (2)
369if (XmlElement.ChildNodes.Count == 1 && XmlElement.FirstChild.NodeType == XmlNodeType.Text) 407if (element.XmlElement.ChildNodes.Count == 1 && element.XmlElement.FirstChild.NodeType == XmlNodeType.Text)
Evaluation\ProjectParser.cs (1)
632if (childElement.ChildNodes.Count == 1 && childElement.FirstChild.NodeType == XmlNodeType.Text)
ObjectModelRemoting\ConstructionObjectLinks\ProjectElementLink.cs (1)
138if (xml.XmlElement.ChildNodes.Count == 1 && xml.XmlElement.FirstChild.NodeType == XmlNodeType.Text)
Utilities\Utilities.cs (1)
199if (node.ChildNodes.Count == 1 && (node.FirstChild.NodeType == XmlNodeType.Text || node.FirstChild.NodeType == XmlNodeType.CDATA))
Microsoft.Build.Engine.UnitTests (2)
Construction\ProjectRootElement_Tests.cs (2)
82Assert.Equal(2, children[0].ChildNodes.Count); 114Assert.Equal(2, children[0].ChildNodes.Count);
Microsoft.Build.Tasks.Core (4)
ManifestUtil\ApplicationManifest.cs (1)
538if (nodes.Count > 0)
XmlPeek.cs (1)
190for (int i = 0; i < xnl?.Count; i++)
XmlPoke.cs (1)
177for (int i = 0; i < xnl?.Count; i++)
XslTransformation.cs (1)
229for (int i = 0; i < xnl.Count; i++)
Microsoft.DotNet.SignCheckLibrary (2)
Verification\XmlVerifier.cs (2)
48Log.WriteMessage(LogVerbosity.Diagnostic, SignCheckResources.XmlSignatureNodes, signatureNodes.Count); 50if (signatureNodes.Count == 0)
Microsoft.ML.NugetPackageVersionUpdater (1)
Program.cs (1)
64for (int i = 0; i < packageReferenceNodes.Count; i++)
Microsoft.Web.Xdt.Extensions (1)
InsertOrAppendAttribute.cs (1)
84if (TargetChildNodes == null || TargetChildNodes.Count == 0)
Microsoft.Web.Xdt.Extensions.Tests (8)
InsertOrAppendAttributeTests.cs (8)
21Assert.Equal(2, doc.ChildNodes.Count); 24Assert.Equal(2, configurationNode.ChildNodes.Count); 45Assert.Equal(2, doc.ChildNodes.Count); 48Assert.Equal(2, configurationNode.ChildNodes.Count); 69Assert.Equal(2, doc.ChildNodes.Count); 72Assert.Equal(2, configurationNode.ChildNodes.Count); 93Assert.Equal(2, doc.ChildNodes.Count); 96Assert.Equal(2, configurationNode.ChildNodes.Count);
PresentationBuildTasks (2)
Microsoft\Build\Tasks\Windows\GenerateTemporaryTargetAssembly.cs (2)
628for (int i = 0; i < root.ChildNodes.Count; i++) 639for (int j = 0; j < nodeGroup.ChildNodes.Count; j++)
PresentationFramework (9)
MS\Internal\Data\XmlBindingWorker.cs (1)
558return string.Create(TypeConverterHelper.InvariantEnglishUS, $"{nodeList.GetType().Name} (hash={AvTrace.GetHashCodeHelper(nodeList)} Count={nodeList.Count})");
MS\Internal\Data\XmlDataCollection.cs (5)
74if (count != nodes.Count) 94while (i < this.Count && i < nodes.Count) 99for (j = i + 1; j < nodes.Count; ++j) 106if (j < nodes.Count) 138while (i < nodes.Count)
MS\Internal\Globalization\BamlTreeUpdater.cs (2)
420for (int i = 0; i < root.ChildNodes.Count && succeed; i++) 567for (int i = 0; i < child.ChildNodes.Count && succeed; i++)
MS\Internal\IO\Packaging\XmlFixedPageInfo.cs (1)
112_glyphRunList = new XmlGlyphRunInfo[NodeList.Count];
PresentationFramework-SystemXml (1)
SystemXmlExtension.cs (1)
151for (int i = 0; i < node.ChildNodes.Count; i++)
System.Data.Common (4)
System\Data\DataSet.cs (2)
2282if (root.ChildNodes.Count == 0 || ((root.ChildNodes.Count == 1) && root.FirstChild!.GetType() == typeof(System.Xml.XmlText)))
System\Xml\XmlBoundElement.cs (1)
393_ = tempNodeList.Count;
System\Xml\XmlDataDocument.cs (1)
3034_ = tempNodeList.Count;
System.Private.DataContractSerialization (1)
System\Runtime\Serialization\SchemaImporter.cs (1)
1291if (typeElement.ChildNodes.Count > 0) //Generic Type
System.Private.Xml (4)
System\Xml\Dom\XmlLoader.cs (1)
792if (node.ChildNodes.Count > 0)
System\Xml\Schema\Parser.cs (3)
243XmlNode?[] markup = new XmlNode[list.Count]; 244for (int i = 0; i < list.Count; i++) 461if (eref.ChildNodes.Count == 0)
System.Security.Cryptography.Xml (51)
System\Security\Cryptography\Xml\CanonicalXml.cs (1)
81for (int i = 0; i < childNodes.Count; i++)
System\Security\Cryptography\Xml\ExcCanonicalXml.cs (1)
91for (int i = 0; i < childNodes.Count; i++)
System\Security\Cryptography\Xml\KeyInfoX509Data.cs (6)
296if ((x509CRLNodes.Count == 0 && x509IssuerSerialNodes.Count == 0 && x509SKINodes.Count == 0 297&& x509SubjectNameNodes.Count == 0 && x509CertificateNodes.Count == 0)) // Bad X509Data tag, or Empty tag 303if (x509CRLNodes.Count != 0)
System\Security\Cryptography\Xml\Reference.cs (10)
229if (transformsNodes != null && transformsNodes.Count != 0) 231if (transformsNodes.Count > 1) 244if (transformNodes.Count != transformsElement.SelectNodes("*")!.Count) 248if (transformNodes.Count > Utils.MaxTransformsPerReference) 316if (digestMethodNodes == null || digestMethodNodes.Count == 0 || digestMethodNodes.Count > 1) 326if (digestValueNodes == null || digestValueNodes.Count == 0 || digestValueNodes.Count > 1) 334if (value.SelectNodes("*")!.Count != expectedChildNodeCount)
System\Security\Cryptography\Xml\Signature.cs (10)
157if (signedInfoNodes == null || signedInfoNodes.Count == 0 || signedInfoNodes.Count > 1) 160expectedChildNodes += signedInfoNodes.Count; 167if (signatureValueNodes == null || signatureValueNodes.Count == 0 || signatureValueNodes.Count > 1) 170expectedChildNodes += signatureValueNodes.Count; 181if (keyInfoNodes.Count > 1) 191expectedChildNodes += keyInfoNodes.Count; 209expectedChildNodes += objectNodes.Count; 222if (signatureElement.SelectNodes("*")!.Count != expectedChildNodes)
System\Security\Cryptography\Xml\SignedInfo.cs (10)
228if (canonicalizationMethodNodes == null || canonicalizationMethodNodes.Count == 0 || canonicalizationMethodNodes.Count > 1) 231expectedChildNodes += canonicalizationMethodNodes.Count; 236if (canonicalizationMethodElement.ChildNodes.Count > 0) 241if (signatureMethodNodes == null || signatureMethodNodes.Count == 0 || signatureMethodNodes.Count > 1) 244expectedChildNodes += signatureMethodNodes.Count; 261if (referenceNodes.Count > Utils.MaxReferencesPerSignedInfo) 272expectedChildNodes += referenceNodes.Count; 274if (signedInfoElement.SelectNodes("*")!.Count != expectedChildNodes)
System\Security\Cryptography\Xml\SignedXml.cs (2)
1103if (nodeList == null || nodeList.Count == 0) 1108if (nodeList.Count == 1)
System\Security\Cryptography\Xml\TransformChain.cs (2)
183if (transformNodes!.Count == 0) 187for (int i = 0; i < transformNodes.Count; ++i)
System\Security\Cryptography\Xml\XmlDecryptionTransform.cs (2)
222if (encryptedDatas == null || encryptedDatas.Count == 0) 247if (nodes.Count > 0)
System\Security\Cryptography\Xml\XmlDsigC14NTransform.cs (1)
39if (nodeList != null && nodeList.Count > 0)
System\Security\Cryptography\Xml\XmlDsigEnvelopedSignatureTransform.cs (2)
49if (nodeList != null && nodeList.Count > 0) 170if (signatureList.Count < _signaturePosition || _signaturePosition <= 0) return _containingDocument;
System\Security\Cryptography\Xml\XmlLicenseTransform.cs (4)
57for (int i = 0, count = encryptedGrantList.Count; i < count; i++) 125if (nodeList != null && nodeList.Count > 0) 162for (int i = 0, count = issuerList.Count; i < count; i++) 174if (encryptedGrantList.Count > 0)