Ejemplo n.º 1
0
 /// <summary>
 /// Provides a global access point for the single instance of the <see cref="Client"/>
 /// class.
 /// </summary>
 /// <returns>A reference to the single instance of <see cref="Client"/>.</returns>
 public static Client Instance()
 {
     if (instance==null)
     {
         lock(typeof(Client))
         {
             if( instance == null )
             {
                 instance = new Client();
             }
         }
     }
     return instance;
 }