Пример #1
0
 //instanciation de la classe
 public static ConnexionToMysql getInstance(string stringDeConnexion)
 {
     lock ((mylock))
     {
         try
         {
             if (uneInstance != null)
             {
                 return(uneInstance);
             }
             else
             {
                 uneInstance = new ConnexionToMysql(stringDeConnexion);
                 return(uneInstance);
             }
         }
         catch (Exception e)
         {
             throw e;
         }
     }
 }