Answers for "c# what is a static method"

C#
14

what does static mean in c#

In C#, static means something which cannot be instantiated. You cannot create an object of a static class and cannot access static members using an object. C# classes, variables, methods, properties, operators, events, and constructors can be defined as static using the static modifier keyword.
Posted by: Guest on July-21-2020
1

c# public static string

public static string saytest = "test";

private static void Main()
{
  Console.WriteLine(saytest);
}
Posted by: Guest on March-02-2020

C# Answers by Framework

Browse Popular Code Answers by Language