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

Method GetHiddenTypesForNamespace

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

Source from the content-addressed store, hash-verified

85 }
86
87 public static IList<TypeInfo> GetHiddenTypesForNamespace(Assembly assembly, string winRTNamespace)
88 {
89 // namespace specific handlers:
90 // Windows.Foundation.Uri is exposed in c++ while in c# System.Uri is used. Retreive the definition of Windows.Foundation.Uri specifically.
91 if (winRTNamespace.Equals("Windows.Foundation"))
92 {
93 return (from t in assembly.DefinedTypes where t.Namespace.Equals(winRTNamespace, StringComparison.InvariantCultureIgnoreCase) && (t.Name.Equals("Uri") || t.Name.Equals("IPropertyValue")) select t).ToList();
94 }
95
96 return new List<TypeInfo>();
97 }
98
99 public static IList<Type> GetTypesForNamespace(Assembly assembly, string winRTNamespace)
100 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected