Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created May 25, 2021 11:01
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 lgolubyev/88d5f8051fd15df663fe147bf4358bb2 to your computer and use it in GitHub Desktop.
Save lgolubyev/88d5f8051fd15df663fe147bf4358bb2 to your computer and use it in GitHub Desktop.
using system;
using System.Runtime.CompilerServices;
class Program
{
static void Main(string[] args)
{
Console.WriteLine($"Data={Data}");
}
public static string Data;
[ModuleInitializer]
public static void Init()
{
Data="This static method is invoked before any other method in the module";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment