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

Method ToWinRTType

src/NodeRTLib/Reflector.cs:582–593  ·  view source on GitHub ↗
(Type type)

Source from the content-addressed store, hash-verified

580 }
581
582 public static string ToWinRTType(Type type)
583 {
584 var CSharpType = TypeToString(type);
585 var typeName = CSharpType
586 .Replace(".", "::")
587 .Replace("System::", "Platform::");
588 string refType = (type.IsValueType && !RefTypesInCppValueInCS.Contains(GetTypeFullName(type))) ? null : "^";
589
590 typeName += refType;
591
592 return typeName.Replace("&^", "^&");
593 }
594
595 // We are interseted in methods which return type IAsyncOperation/IAsyncAction
596 public static bool IsAsync(MethodInfo info)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected