public static RuntimeTypeHandle GetCanonType(CanonTypeKind kind) { switch (kind) { case CanonTypeKind.NormalCanon: return(typeof(System.__Canon).TypeHandle); case CanonTypeKind.UniversalCanon: return(typeof(System.__UniversalCanon).TypeHandle); default: Debug.Assert(false); return(default(RuntimeTypeHandle)); } }
public static RuntimeTypeHandle GetCanonType(CanonTypeKind kind) { #if PROJECTN switch (kind) { case CanonTypeKind.NormalCanon: return(typeof(System.__Canon).TypeHandle); case CanonTypeKind.UniversalCanon: return(typeof(System.__UniversalCanon).TypeHandle); default: Debug.Assert(false); return(default(RuntimeTypeHandle)); } #else // Compiler needs to expand this. This is not expressible in IL. throw new NotSupportedException(); #endif }