1 write to TypeDefTable
System.Reflection.Metadata (1)
System\Reflection\Metadata\MetadataReader.cs (1)
611this.TypeDefTable = new TypeDefTableReader(rowCounts[(int)TableIndex.TypeDef], fieldRefSizeSorted, methodRefSizeSorted, typeDefOrRefRefSize, stringHeapRefSize, metadataTablesMemoryBlock, totalRequiredSize);
38 references to TypeDefTable
System.Reflection.Metadata (38)
System\Reflection\Metadata\Ecma335\MetadataReaderExtensions.cs (2)
51TableIndex.TypeDef => reader.TypeDefTable.RowSize, 132TableIndex.TypeDef => reader.TypeDefTable.Block,
System\Reflection\Metadata\Internal\NamespaceCache.cs (1)
337NamespaceDefinitionHandle namespaceHandle = _metadataReader.TypeDefTable.GetNamespaceDefinition(typeHandle);
System\Reflection\Metadata\MetadataReader.cs (10)
612totalRequiredSize += this.TypeDefTable.Block.Length; 844firstFieldRowId = this.TypeDefTable.GetFieldStart(typeDefRowId); 850else if (typeDefRowId == this.TypeDefTable.NumberOfRows) 856lastFieldRowId = this.TypeDefTable.GetFieldStart(typeDefRowId + 1) - 1; 863firstMethodRowId = this.TypeDefTable.GetMethodStart(typeDefRowId); 869else if (typeDefRowId == this.TypeDefTable.NumberOfRows) 875lastMethodRowId = this.TypeDefTable.GetMethodStart(typeDefRowId + 1) - 1; 1031public TypeDefinitionHandleCollection TypeDefinitions => new TypeDefinitionHandleCollection(TypeDefTable.NumberOfRows); 1335return TypeDefTable.FindTypeContainingMethod(methodRowId, MethodDefTable.NumberOfRows); 1350return TypeDefTable.FindTypeContainingField(fieldRowId, FieldTable.NumberOfRows);
System\Reflection\Metadata\MetadataReader.WinMD.cs (15)
56StringHandle name = TypeDefTable.GetName(typeDef); 64StringHandle namespaceName = TypeDefTable.GetNamespace(typeDef); 227TypeAttributes flags = TypeDefTable.GetFlags(handle); 228EntityHandle extends = TypeDefTable.GetExtends(handle); 304var attrs = TypeDefTable.GetFlags(typeDef); 311return StringHeap.StartsWithRaw(TypeDefTable.GetName(typeDef), ClrPrefix); 395TypeAttributes parentFlags = TypeDefTable.GetFlags(parentTypeDef); 419var parentBaseType = TypeDefTable.GetExtends(parentTypeDef); 550EntityHandle baseTypeHandle = TypeDefTable.GetExtends(typeDef); 681if (StringHeap.EqualsRaw(TypeDefTable.GetNamespace(targetTypeDef), "Windows.Foundation.Metadata")) 683if (StringHeap.EqualsRaw(TypeDefTable.GetName(targetTypeDef), "VersionAttribute")) 688if (StringHeap.EqualsRaw(TypeDefTable.GetName(targetTypeDef), "DeprecatedAttribute")) 773if (TypeDefTable.GetFlags(typeDef).IsNested()) 779typeName = TypeDefTable.GetName(typeDef); 780namespaceName = TypeDefTable.GetNamespace(typeDef);
System\Reflection\Metadata\TypeSystem\TypeDefinition.cs (10)
47return _reader.TypeDefTable.GetFlags(Handle); 68return _reader.TypeDefTable.GetName(Handle); 84return _reader.TypeDefTable.GetNamespace(Handle); 100return _reader.TypeDefTable.GetNamespaceDefinition(Handle); 117return _reader.TypeDefTable.GetExtends(Handle); 222var flags = _reader.TypeDefTable.GetFlags(Handle); 267var name = _reader.TypeDefTable.GetName(Handle); 283return _reader.TypeDefTable.GetNamespaceDefinition(Handle); 289return _reader.TypeDefTable.GetNamespace(Handle); 295return _reader.TypeDefTable.GetExtends(Handle);