src\tools\illink\src\ILLink.Shared\TypeSystemProxy\WellKnownType.cs (24)
28public static (string Namespace, string Name) GetNamespaceAndName(this WellKnownType type)
32WellKnownType.System_String => ("System", "String"),
33WellKnownType.System_Nullable_T => ("System", "Nullable`1"),
34WellKnownType.System_Type => ("System", "Type"),
35WellKnownType.System_Reflection_IReflect => ("System.Reflection", "IReflect"),
36WellKnownType.System_Array => ("System", "Array"),
37WellKnownType.System_Object => ("System", "Object"),
38WellKnownType.System_Attribute => ("System", "Attribute"),
39WellKnownType.System_NotSupportedException => ("System", "NotSupportedException"),
40WellKnownType.System_Runtime_CompilerServices_DisablePrivateReflectionAttribute => ("System.Runtime.CompilerServices", "DisablePrivateReflectionAttribute"),
41WellKnownType.System_Void => ("System", "Void"),
45public static string GetNamespace(this WellKnownType type) => GetNamespaceAndName(type).Namespace;
46public static string GetName(this WellKnownType type) => GetNamespaceAndName(type).Name;
47public static WellKnownType? GetWellKnownType(string @namespace, string name)
53"String" => WellKnownType.System_String,
54"Nullable`1" => WellKnownType.System_Nullable_T,
55"Type" => WellKnownType.System_Type,
56"Array" => WellKnownType.System_Array,
57"Attribute" => WellKnownType.System_Attribute,
58"Object" => WellKnownType.System_Object,
59"NotSupportedException" => WellKnownType.System_NotSupportedException,
60"Void" => WellKnownType.System_Void,
65"IReflect" => WellKnownType.System_Reflection_IReflect,
70"DisablePrivateReflectionAttribute" => WellKnownType.System_Runtime_CompilerServices_DisablePrivateReflectionAttribute,