Demo entry 6637103



Submitted by ad on Aug 30, 2017 at 10:28
Language: C#. Code size: 414 Bytes.

    public class Singleton  
    private static Singleton uniqueInstance;  
    private Singleton(){}  
    public static Singleton GetInstance()  
        if (uniqueInstance == null)  
       uniqueInstance = new Singleton();  
    return uniqueInstance;  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).