Update Singleton pattern.

Use C# and C++