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

how to use WinRT C# Singleton in Javascript

$
0
0

I am new to Windows 8 development, my question is: how do I use C# Singleton in Javascript app? I am using the Static Initialization (http://msdn.microsoft.com/en-us/library/ff650316.aspx) in my C# class. MyClass.Instance (which returns the singleton instance) is undefined when I call it in Javascript. Thanks.

EDIT: I have a C# class which is Singleton, and I am trying to use it with my Javascript Windows 8 App, I am not trying to implement Singleton in Javascript.


Viewing all articles
Browse latest Browse all 2

Trending Articles



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