private StringHandle.VirtualIndex GetVirtualNameIndex(AssemblyReferenceHandle.VirtualIndex index) { switch (index) { case AssemblyReferenceHandle.VirtualIndex.System_ObjectModel: return(StringHandle.VirtualIndex.System_ObjectModel); case AssemblyReferenceHandle.VirtualIndex.System_Runtime: return(StringHandle.VirtualIndex.System_Runtime); case AssemblyReferenceHandle.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime: return(StringHandle.VirtualIndex.System_Runtime_InteropServices_WindowsRuntime); case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime: return(StringHandle.VirtualIndex.System_Runtime_WindowsRuntime); case AssemblyReferenceHandle.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml: return(StringHandle.VirtualIndex.System_Runtime_WindowsRuntime_UI_Xaml); case AssemblyReferenceHandle.VirtualIndex.System_Numerics_Vectors: return(StringHandle.VirtualIndex.System_Numerics_Vectors); } Debug.Assert(false, "Unexpected virtual index value"); return(0); }
public ProjectionInfo( string winRtNamespace, StringHandle.VirtualIndex clrNamespace, StringHandle.VirtualIndex clrName, AssemblyReferenceHandle.VirtualIndex clrAssembly, TypeDefTreatment treatment = TypeDefTreatment.RedirectedToClrType, bool isIDisposable = false) { this.WinRTNamespace = winRtNamespace; this.ClrNamespace = clrNamespace; this.ClrName = clrName; this.AssemblyRef = clrAssembly; this.Treatment = treatment; this.IsIDisposable = isIDisposable; }