// dnlib: See LICENSE.txt for more info
namespace dnlib.DotNet.Writer {
///
/// All events
///
public enum MetadataEvent {
///
/// Creating the tables has just begun
///
BeginCreateTables,
///
/// Before allocating all TypeDef RIDs
///
AllocateTypeDefRids,
///
/// Before allocating all MemberDef RIDs
///
AllocateMemberDefRids,
///
/// The rids of types, fields, methods, events, properties and parameters are
/// now known.
///
MemberDefRidsAllocated,
///
/// The tables and rows of all types, fields, methods, events, properties and parameters
/// have been initialized. Method body RVAs are still not known, and no method has been
/// written yet.
///
MemberDefsInitialized,
///
/// Before sorting most tables
///
BeforeSortTables,
///
/// Most of the tables that should be sorted have been sorted. The CustomAttribute
/// table is still unsorted since it hasn't been created yet.
///
MostTablesSorted,
///
/// Custom attributes of all types, fields, methods, events, properties and parameters
/// have now been written.
///
MemberDefCustomAttributesWritten,
///
/// All resources are about to be added to the .NET resources table
///
BeginAddResources,
///
/// All resources have been added to the .NET resources table
///
EndAddResources,
///
/// All method bodies are about to be written
///
BeginWriteMethodBodies,
///
/// All method bodies have been written. Their RVAs are still not known.
///
EndWriteMethodBodies,
///
/// All tables are now sorted, including the CustomAttribute table.
///
OnAllTablesSorted,
///
/// All tables have been created and all rows populated. The only columns that haven't
/// been initialized yet are the ones that are RVAs.
///
EndCreateTables,
}
}