54 references to GetTableRowCount
Microsoft.CodeAnalysis (2)
Emit\EditAndContinue\EmitBaseline.cs (2)
495sizes[i] = reader.GetTableRowCount((TableIndex)i) + delta[i]; 534int n = reader.GetTableRowCount(TableIndex.MethodImpl);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Attributes\AttributeTests_Assembly.cs (10)
1066Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1112Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 1113Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1133Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 1134Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1187Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1227Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 1228Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1248Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 1249Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.ExportedType));
Attributes\AttributeTests_WellKnownAttributes.cs (12)
2136Assert.Equal(15, metadataReader.GetTableRowCount(TableIndex.Param)); 2638Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 2639Assert.Equal(3, metadataReader.GetTableRowCount(TableIndex.ImplMap)); 2700Assert.Equal(0, metadataReader.GetTableRowCount(TableIndex.File)); 2703Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); 2812Assert.Equal(4, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 2813Assert.Equal(5, metadataReader.GetTableRowCount(TableIndex.ImplMap)); 2928Assert.Equal(cases.Length, metadataReader.GetTableRowCount(TableIndex.ImplMap)); 3429Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 3430Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap)); 3461Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ModuleRef)); 3462Assert.Equal(1, metadataReader.GetTableRowCount(TableIndex.ImplMap));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Symbols\Metadata\PE\TypeForwarders.cs (7)
1511Assert.Equal(forwardedTypeFullNames.Length, metadataReader.GetTableRowCount(TableIndex.ExportedType)); 1636Assert.Equal(1, peReader.GetTableRowCount(TableIndex.ExportedType)); 1647Assert.Equal(1, peReader1.GetTableRowCount(TableIndex.ExportedType)); 1690Assert.Equal(0, peReader.GetTableRowCount(TableIndex.ExportedType)); 1700Assert.Equal(0, peReader1.GetTableRowCount(TableIndex.ExportedType)); 1710Assert.Equal(0, peReader.GetTableRowCount(TableIndex.ExportedType)); 1780Assert.Equal(forwardedTypeFullNames.Length, peReader.GetTableRowCount(TableIndex.ExportedType));
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
PDB\MethodDebugInfo.Portable.cs (1)
97if (reader.GetTableRowCount(TableIndex.EncMap) == 0)
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\EditSession.cs (1)
135var highestExistingTypeDefRow = emitResult.Baseline.OriginalMetadata.GetMetadataReader().GetTableRowCount(TableIndex.TypeDef);
Microsoft.CodeAnalysis.Test.Utilities (6)
Metadata\MetadataReaderUtils.cs (5)
28for (int i = 1, n = reader.GetTableRowCount(TableIndex.Constant); i <= n; i++) 36for (int i = 1, n = reader.GetTableRowCount(TableIndex.Param); i <= n; i++) 44for (int i = 1, n = reader.GetTableRowCount(TableIndex.GenericParam); i <= n; i++) 52for (int i = 1, n = reader.GetTableRowCount(TableIndex.GenericParamConstraint); i <= n; i++) 60for (int i = 1, n = reader.GetTableRowCount(TableIndex.ModuleRef); i <= n; i++)
Metadata\MetadataValidation.cs (1)
136Assert.Equal(expectedMarshalCount, metadataReader.GetTableRowCount(TableIndex.FieldMarshal));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (4)
Semantics\FieldInitializerBindingTests.vb (4)
899Assert.Equal(6, reader.GetTableRowCount(TableIndex.Constant)) 967Assert.Equal(10, reader.GetTableRowCount(TableIndex.Constant)) 1305Assert.Equal(FIELD_COUNT - ATTR_CONST_COUNT + ENUM_CONST_COUNT, reader.GetTableRowCount(TableIndex.Constant)) 1306Assert.Equal(FIELD_COUNT, reader.GetTableRowCount(TableIndex.Param))
Microsoft.DotNet.Build.Tasks.Packaging (1)
GetAssemblyReferences.cs (1)
69for (int i = 1, count = reader.GetTableRowCount(TableIndex.ModuleRef); i <= count; i++)
Microsoft.DotNet.GenFacades (1)
ClearAssemblyReferenceVersions.cs (1)
37int numAssemblyRef = mdReader.GetTableRowCount(TableIndex.AssemblyRef);
Microsoft.DotNet.PackageTesting (2)
VerifyClosure.cs (2)
457var count = reader.GetTableRowCount(TableIndex.AssemblyRef); 471var count = reader.GetTableRowCount(TableIndex.ModuleRef);
Microsoft.DotNet.SharedFramework.Sdk (2)
src\Microsoft.DotNet.PackageTesting\VerifyClosure.cs (2)
457var count = reader.GetTableRowCount(TableIndex.AssemblyRef); 471var count = reader.GetTableRowCount(TableIndex.ModuleRef);
Roslyn.Test.PdbUtilities (1)
EditAndContinue\EditAndContinueTest.GenerationVerifier.cs (1)
79AssertEx.AreEqual(expected, MetadataReader.GetTableRowCount(table), message: GetAssertMessage($"{table} table size doesnt't match"));
System.Reflection.Metadata (3)
System\Reflection\Metadata\Ecma335\MetadataAggregator.cs (3)
61if (baseReader.GetTableRowCount(TableIndex.EncMap) != 0) 94if (deltaReaders[i].GetTableRowCount(TableIndex.EncMap) == 0 || !deltaReaders[i].IsMinimalDelta) 121rowCounts[i] = baseReader.GetTableRowCount((TableIndex)i);
System.Reflection.MetadataLoadContext (1)
System\Reflection\TypeLoading\Modules\Ecma\EcmaModule.MetadataTables.cs (1)
74return new MetadataTable<T, EcmaModule>(Reader.GetTableRowCount(tableIndex));