Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddTypeDefinition()

TypeDefinitionHandle System.Reflection.Metadata.Ecma335.MetadataBuilder.AddTypeDefinition ( TypeAttributes attributes,
StringHandle @ namespace,
StringHandle name,
EntityHandle baseType,
FieldDefinitionHandle fieldList,
MethodDefinitionHandle methodList )
inline

Definition at line 1030 of file MetadataBuilder.cs.

1031 {
1032 _typeDefTable.Add(new TypeDefRow
1033 {
1034 Flags = (uint)attributes,
1035 Name = name,
1036 Namespace = @namespace,
1037 Extends = ((!baseType.IsNil) ? CodedIndex.TypeDefOrRefOrSpec(baseType) : 0),
1038 FieldList = fieldList.RowId,
1039 MethodList = methodList.RowId
1040 });
1041 return TypeDefinitionHandle.FromRowId(_typeDefTable.Count);
1042 }
void Add(TKey key, TValue value)

References System.Reflection.Metadata.Ecma335.MetadataBuilder._typeDefTable, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Reflection.Metadata.TypeDefinitionHandle.FromRowId(), System.Reflection.Name, and System.Reflection.Metadata.Ecma335.CodedIndex.TypeDefOrRefOrSpec().