diff options
Diffstat (limited to 'Mono.Cecil.Metadata/TableHeap.cs')
-rw-r--r-- | Mono.Cecil.Metadata/TableHeap.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Mono.Cecil.Metadata/TableHeap.cs b/Mono.Cecil.Metadata/TableHeap.cs index 2705c51..37a1948 100644 --- a/Mono.Cecil.Metadata/TableHeap.cs +++ b/Mono.Cecil.Metadata/TableHeap.cs @@ -90,15 +90,9 @@ namespace Mono.Cecil.Metadata { public long Valid; public long Sorted; - public static readonly Table [] TableIdentifiers; - public readonly TableInformation [] Tables = new TableInformation [45]; + public const int TableCount = 45; - static TableHeap () - { - TableIdentifiers = new Table [45]; - for (int i = 0; i < TableIdentifiers.Length; i++) - TableIdentifiers [i] = (Table) i; - } + public readonly TableInformation [] Tables = new TableInformation [TableCount]; public TableInformation this [Table table] { get { return Tables [(int) table]; } |