Skip to content

Instantly share code, notes, and snippets.

@nanwang2016
Created August 17, 2020 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nanwang2016/6e75773e31d79057f2cc38f1b6858f70 to your computer and use it in GitHub Desktop.
Save nanwang2016/6e75773e31d79057f2cc38f1b6858f70 to your computer and use it in GitHub Desktop.
using System;
namespace TestFile
{
class Program
{
static void Main(string[] args)
{
}
}
class Vehicle
{
//Static Constructor
static Vehicle()
{
Console.WriteLine("Static Constructor is called!");
}
//Instance Consturctor
public Vehicle()
{
Console.WriteLine("Instance Constructor is called!")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment