Quantcast
Channel: how to use WinRT C# Singleton in Javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Answer by milgner for how to use WinRT C# Singleton in Javascript

$
0
0

Language projection will slightly change the name of properties to conform to the patterns used in the consuming language. So when you define a property MyClass::Instance in C#, you should have MyClass.instance (lowercase 'i') in JavaScript.

Also, you can browse the available functions and properties in the JavaScript debugger (using Shift+F9 and entering "MyClass" for example is one way).


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>