13 [method: SecurityCritical]
17 [method: SecurityCritical]
44 if (namespaceName ==
null)
48 string[] array =
null;
49 if (packageGraphFilePaths !=
null)
52 array =
new string[list.Count];
54 foreach (
string item
in list)
56 string text = array[num] = item;
61 nResolveNamespace(namespaceName, windowsSdkFilePath, array, (array !=
null) ? array.Length : 0, JitHelpers.GetObjectHandleOnStack(ref o));
67 [SuppressUnmanagedCodeSecurity]
68 private static extern void nResolveNamespace(
string namespaceName,
string windowsSdkFilePath,
string[] packageGraphFilePaths,
int cPackageGraphFilePaths, ObjectHandleOnStack retFileNames);
70 internal static RuntimeAssembly[] OnReflectionOnlyNamespaceResolveEvent(
AppDomain appDomain, RuntimeAssembly assembly,
string namespaceName)
73 if (reflectionOnlyNamespaceResolve !=
null)
76 int num = invocationList.Length;
77 for (
int i = 0; i < num; i++)
80 ((EventHandler<NamespaceResolveEventArgs>)invocationList[i])(appDomain, namespaceResolveEventArgs);
82 if (resolvedAssemblies.
Count > 0)
84 RuntimeAssembly[] array =
new RuntimeAssembly[resolvedAssemblies.
Count];
87 foreach (
Assembly item
in resolvedAssemblies)
89 array[num2] =
AppDomain.GetRuntimeAssembly(item);
100 internal static string[] OnDesignerNamespaceResolveEvent(AppDomain appDomain,
string namespaceName)
102 EventHandler<DesignerNamespaceResolveEventArgs> designerNamespaceResolve = WindowsRuntimeMetadata.DesignerNamespaceResolve;
103 if (designerNamespaceResolve !=
null)
106 int num = invocationList.Length;
107 for (
int i = 0; i < num; i++)
109 DesignerNamespaceResolveEventArgs designerNamespaceResolveEventArgs =
new DesignerNamespaceResolveEventArgs(namespaceName);
110 ((EventHandler<DesignerNamespaceResolveEventArgs>)invocationList[i])(appDomain, designerNamespaceResolveEventArgs);
111 Collection<string> resolvedAssemblyFiles = designerNamespaceResolveEventArgs.ResolvedAssemblyFiles;
112 if (resolvedAssemblyFiles.
Count > 0)
114 string[] array =
new string[resolvedAssemblyFiles.
Count];
117 foreach (
string item
in resolvedAssemblyFiles)
119 if (
string.IsNullOrEmpty(item))
121 throw new ArgumentException(Environment.GetResourceString(
"Arg_EmptyOrNullString"),
"DesignerNamespaceResolveEventArgs.ResolvedAssemblyFiles");
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
virtual Delegate [] GetInvocationList()
Returns the invocation list of the delegate.
Represents an application domain, which is an isolated environment where applications execute....
Represents an assembly, which is a reusable, versionable, and self-describing building block of a com...
Represents a delegate, which is a data structure that refers to a static method or to a class instanc...
int Count
Gets the number of elements actually contained in the T:System.Collections.ObjectModel....
CharSet
Dictates which character set marshaled strings should use.
Collection< Assembly > ResolvedAssemblies
Gets a collection of assemblies; when the event handler for the E:System.Runtime.InteropServices....
Attribute can be applied to a delegate.
Provides data for the E:System.Runtime.InteropServices.WindowsRuntime.WindowsRuntimeMetadata....