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

Method ResolveNamespaceCasing

src/NodeRTLib/Reflector.cs:263–275  ·  view source on GitHub ↗

Used in order to retreive the namespace with the appropriate casings

(string winmdFile, string winRTNamespace, string baseWinMDDir)

Source from the content-addressed store, hash-verified

261
262 // Used in order to retreive the namespace with the appropriate casings
263 private static string ResolveNamespaceCasing(string winmdFile, string winRTNamespace, string baseWinMDDir)
264 {
265 foreach (string ns in GetNamespaces(winmdFile, baseWinMDDir))
266 {
267 if (String.Compare(winRTNamespace, ns, true) == 0)
268 {
269 return ns;
270 }
271 }
272
273 // not found, fallback to the given namepace
274 return winRTNamespace;
275 }
276
277 public static string GenerateProject(string winmdFile, string winRTNamespace, string destinationFolder, NodeRTProjectGenerator generator,
278 string npmPackageVersion, string npmScope, string baseWinMDDir)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected