Arma2NETMySQLPlugin.MySQL.RunCommand C# (CSharp) Метод

RunCommand() публичный Метод

public RunCommand ( string mysql_command, int maxResultSize ) : IEnumerable
mysql_command string
maxResultSize int
Результат IEnumerable
        public override IEnumerable<string[][]> RunCommand(string mysql_command, int maxResultSize)
        {
            if (connection == null) {
                OpenConnection(connectString);
            }

            //Logger.addMessage(Logger.LogType.Info, "Started RunCommand");
            if (connection != null && connection.State == System.Data.ConnectionState.Open && mysql_command != null)
            {
                MySqlCommand command = connection.CreateCommand();
                command.CommandText = mysql_command;
                yield return RunOnDatabase(command, maxResultSize);
            }
            //Logger.addMessage(Logger.LogType.Info, "yield breaking in RunProcedure");
            yield break;
        }