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

Method GetTypesForNamespace

src/NodeRTLib/Reflector.cs:99–111  ·  view source on GitHub ↗
(Assembly assembly, string winRTNamespace)

Source from the content-addressed store, hash-verified

97 }
98
99 public static IList<Type> GetTypesForNamespace(Assembly assembly, string winRTNamespace)
100 {
101 IList<Type> types = (from t in assembly.ExportedTypes where t.Namespace.Equals(winRTNamespace, StringComparison.InvariantCultureIgnoreCase) && !t.IsValueType && !t.IsGenericType && t.BaseType != typeof(Delegate) && t.BaseType != typeof(MulticastDelegate) select t).ToList();
102
103 IList<TypeInfo> hiddenTypes = GetHiddenTypesForNamespace(assembly, winRTNamespace);
104
105 foreach (var t in hiddenTypes)
106 {
107 types.Add(t);
108 }
109
110 return types;
111 }
112
113 private static bool VerifyNamespaceInAssembly(Assembly assembly, string winRTNamespace)
114 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected