// // This entry is targeted by the ILTransformer to implement Type.GetType()'s ability to detect the calling assembly and use it as // a default assembly name. // public static Type ExtensibleGetType(string typeName, string callingAssemblyName, Func<AssemblyName, Assembly> assemblyResolver, Func<Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase) { LowLevelListWithIList<String> defaultAssemblies = new LowLevelListWithIList<String>(); defaultAssemblies.Add(callingAssemblyName); defaultAssemblies.AddRange(DefaultAssemblyNamesForGetType); return ReflectionCoreExecution.ExecutionDomain.GetType(typeName, assemblyResolver, typeResolver, throwOnError, ignoreCase, defaultAssemblies); }
// // This entry is targeted by the ILTransformer to implement Type.GetType()'s ability to detect the calling assembly and use it as // a default assembly name. // public static Type GetType(String typeName, String callingAssemblyName, bool throwOnError, bool ignoreCase) { LowLevelListWithIList<String> defaultAssemblies = new LowLevelListWithIList<String>(); defaultAssemblies.Add(callingAssemblyName); defaultAssemblies.AddRange(DefaultAssemblyNamesForGetType); return ReflectionCoreExecution.ExecutionDomain.GetType(typeName, throwOnError, ignoreCase, defaultAssemblies); }
// // This entry is targeted by the ILTransformer to implement Type.GetType()'s ability to detect the calling assembly and use it as // a default assembly name. // public static Type GetType(String typeName, String callingAssemblyName, bool throwOnError, bool ignoreCase) { LowLevelListWithIList <String> defaultAssemblies = new LowLevelListWithIList <String>(); defaultAssemblies.Add(callingAssemblyName); defaultAssemblies.AddRange(DefaultAssemblyNamesForGetType); return(ReflectionCoreExecution.ExecutionDomain.GetType(typeName, throwOnError, ignoreCase, defaultAssemblies)); }
// // This entry is targeted by the ILTransformer to implement Type.GetType()'s ability to detect the calling assembly and use it as // a default assembly name. // public static Type ExtensibleGetType(string typeName, string callingAssemblyName, Func <AssemblyName, Assembly> assemblyResolver, Func <Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase) { LowLevelListWithIList <String> defaultAssemblies = new LowLevelListWithIList <String>(); defaultAssemblies.Add(callingAssemblyName); defaultAssemblies.AddRange(DefaultAssemblyNamesForGetType); return(ReflectionCoreExecution.ExecutionDomain.GetType(typeName, assemblyResolver, typeResolver, throwOnError, ignoreCase, defaultAssemblies)); }
public sealed override Type GetType(string typeName, Func <AssemblyName, Assembly> assemblyResolver, Func <Assembly, string, bool, Type> typeResolver, bool throwOnError, bool ignoreCase, string defaultAssemblyName) { if (defaultAssemblyName == null) { return(_executionDomain.GetType(typeName, assemblyResolver, typeResolver, throwOnError, ignoreCase, ReflectionExecution.DefaultAssemblyNamesForGetType)); } else { LowLevelListWithIList <String> defaultAssemblies = new LowLevelListWithIList <String>(); defaultAssemblies.Add(defaultAssemblyName); defaultAssemblies.AddRange(ReflectionExecution.DefaultAssemblyNamesForGetType); return(_executionDomain.GetType(typeName, assemblyResolver, typeResolver, throwOnError, ignoreCase, defaultAssemblies)); } }