MCPcopy Create free account
hub / github.com/NodeRT/NodeRT / GetNamespaces

Method GetNamespaces

src/NodeRTLib/Reflector.cs:61–73  ·  view source on GitHub ↗
(string winmdFile, string baseWinMDDir)

Source from the content-addressed store, hash-verified

59 }
60
61 public static IEnumerable<string> GetNamespaces(string winmdFile, string baseWinMDDir)
62 {
63 BaseWindMDDir = baseWinMDDir;
64 var assembly = Assembly.ReflectionOnlyLoadFrom(winmdFile);
65 if (!assembly.FullName.Contains("WindowsRuntime"))
66 {
67 return new string[0];
68 }
69
70 var namespaces = from t in assembly.ExportedTypes select t.Namespace;
71
72 return namespaces.Distinct();
73 }
74
75 public static dynamic GenerateModel(string winmdFile, string winRTNamespace, string baseWinMDDir)
76 {

Callers 3

LoadNamespacesMethod · 0.80
MainMethod · 0.80
PrintNamespacesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected