ALFA.MySQLDatabase.ForceLoadMySQL C# (CSharp) Метод

ForceLoadMySQL() приватный Метод

This method forces MySQL.Data.dll to be loaded and linked.
private ForceLoadMySQL ( ) : void
Результат void
        private void ForceLoadMySQL()
        {
            //
            // Just create and delete a dummy connection object.  This will
            // force a type reference to MySql.Data.dll while we have the
            // assembly resolve handler setup.
            //

            using (MySqlConnection DummyConnection = new MySqlConnection())
            {
                GC.KeepAlive(DummyConnection);
            }
        }