Mega Code Archive

 
Categories / C# Tutorial / Class
 

Reference a static member function without using the class name

public class A {    public static void SomeFunction()    {       System.Console.WriteLine( "SomeFunction() called" );    }    static void Main()    {       A.SomeFunction();       SomeFunction();    } } SomeFunction() called SomeFunction() called