31 references to TypeDef
System.AddIn (31)
System\Addin\MiniReflection\MetadataReader\Metadata.cs (13)
138
Names[(Int32)Tables.
TypeDef
] = "TypeDef";
195
new Tables[] { Tables.
TypeDef
, Tables.TypeRef, Tables.TypeSpec }),
199
new Tables[] { Tables.MethodDef, Tables.FieldDef, Tables.TypeRef, Tables.
TypeDef
,
209
new Tables[] { Tables.
TypeDef
, Tables.MethodDef, Tables.XAssembly }),
212
new Tables[] { Tables.
TypeDef
, Tables.TypeRef, Tables.ModuleRef, Tables.MethodDef, Tables.TypeSpec }),
226
new Tables[] { Tables.
TypeDef
, Tables.MethodDef })
309
lengths[(Int32)Tables.ClassLayout] = 2 + 4 + RowSize(Tables.
TypeDef
);
314
lengths[(Int32)Tables.EventMap] = RowSize(Tables.
TypeDef
) + RowSize(Tables.XEvent);
327
lengths[(Int32)Tables.InterfaceImpl] = RowSize(Tables.
TypeDef
) + MetadataTokenSize(Encodings.TypeDefOrRef);
333
lengths[(Int32)Tables.MethodImpl] = RowSize(Tables.
TypeDef
) + MetadataTokenSize(Encodings.MethodDefOrRef) * 2;
337
lengths[(Int32)Tables.NestedClass] = RowSize(Tables.
TypeDef
) * 2;
340
lengths[(Int32)Tables.PropertyMap] = RowSize(Tables.
TypeDef
) + RowSize(Tables.XProperty);
342
lengths[(Int32)Tables.
TypeDef
] = 4 + stringIndex*2 + MetadataTokenSize(Encodings.TypeDefOrRef) +
System\Addin\MiniReflection\MiniAssembly.cs (3)
107
uint numTypeDefs = mdScope.RowsInTable(MDTables.Tables.
TypeDef
);
109
mdScope.SeekToRowOfTable(MDTables.Tables.
TypeDef
, i);
117
return new MetadataToken(MDTables.Tables.
TypeDef
, i + 1);
System\Addin\MiniReflection\MiniModule.cs (1)
171
case MDTables.Tables.
TypeDef
:
System\Addin\MiniReflection\TypeInfo.cs (14)
79
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.Tables.
TypeDef
);
98
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.Tables.
TypeDef
);
113
System.Diagnostics.Contracts.Contract.Requires(typeDef.Table == MDTables.Tables.
TypeDef
);
447
else if (token.Table == MDTables.Tables.
TypeDef
)
480
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.Tables.
TypeDef
);
501
if (_mdToken.Index == MetaData.RowsInTable(MDTables.Tables.
TypeDef
))
507
MetaData.SeekToRowOfTable(MDTables.Tables.
TypeDef
, _mdToken.Index); // Seek to next type (not off by 1!)
678
MDTables.Tables[] mapToTable = new MDTables.Tables[]{MDTables.Tables.
TypeDef
, MDTables.Tables.TypeRef, MDTables.Tables.TypeSpec};
752
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.Tables.
TypeDef
);
760
System.Diagnostics.Contracts.Contract.Requires(typeDefToken.Table == MDTables.Tables.
TypeDef
);
772
uint typeDefRow = mdScope.ReadRowIndex(MDTables.Tables.
TypeDef
);
797
case MDTables.Tables.
TypeDef
:
884
System.Diagnostics.Contracts.Contract.Assert(_mdToken.Table == MDTables.Tables.
TypeDef
);
897
uint typeDefRow = mdScope.ReadRowIndex(MDTables.Tables.
TypeDef
);