Updates the C# code generation logic to build a table of all exported types so that the code generation logic can easily look up the full export information when dealing with type references. The main advantage of this currently is being able to access the binding style for a references type in order to correctly account for binding style in different contexts. This is specifically necessary when dealing with a reference to an enum type, as the generated C# type may be named differently depending on whether the type is marshaled by value or as a handle.
Generate a TypeMap from the list of exported items at the start of code generation.
Update all parts of code generation that handle type references to look up the full export definition as appropriate.
Updates the C# code generation logic to build a table of all exported types so that the code generation logic can easily look up the full export information when dealing with type references. The main advantage of this currently is being able to access the binding style for a references type in order to correctly account for binding style in different contexts. This is specifically necessary when dealing with a reference to an enum type, as the generated C# type may be named differently depending on whether the type is marshaled by value or as a handle.
TypeMap
from the list of exported items at the start of code generation.