WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('in-progress') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

WordPress database error: [Table './ay6u3nor6dat6ba1/kn6_ayu1n9k4_5_actionscheduler_actions' is marked as crashed and last (automatic?) repair failed]
SELECT a.action_id FROM kn6_ayu1n9k4_5_actionscheduler_actions a WHERE 1=1 AND a.hook='aioseo_send_usage_data' AND a.status IN ('pending') ORDER BY a.scheduled_date_gmt ASC LIMIT 0, 1

Static functions | Loop and Break

Static functions

Static functions are the functions which are not bounded by the space of any class. They are called directly without making an object from which class they belong. Following example demonstrate the things.

Example

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace ConsoleApplication1
{
    class Program
    {
        static void function1()
        {
            Console.WriteLine("static methods")
        }

        void function2()
        {
            Console.WriteLine("non static method");
        }

        static void Main(string[] args)
        {
            function1(); // static methods called directly
            function2(); // will give error, because not static
            // in order to use function2, we need an object
            Program pr = new Program(); // object created
            pr.function2(); // function2 called
            Console.Read();
        }
    }
}
Share

You may also like...