C# is the Main problem This programming puzzle is inspired by another question which has been asked here yesterday but which was deleted by the author...

The challenge:

Create an executable binary (Windows .EXE or Linux binary) using Visual C# (or your favorite C# IDE) which prints the following text to the standard output:

Main() is the main method of C# programs!


... without using the 4 consecutive letters M-A-I-N appearing in any source file!

Notes:


If your source code contains the text remainder (for example) it contains the 4 consecutive letters M-A-I-N, however if it contains mxain the 4 letters would not be consecutive any more so mxain would be allowed.
You are not allowed to run any programs but the C# IDE nor change the settings of the C# IDE to run other programs (but the ones it would normally run such as the C# compiler).

Otherwise you could simply say: "I write a Pascal program using the C# IDE and invoke the Pascal compiler in the 'pre-build' steps of my C# project".

This would be too simple.
Users of an IDE that can be extending using "plug-ins" (or similar) or that have built-in binary file editors (hex-editors) would have a too large advantage over users of other C# IDEs.

Therefore these featrues should also not be used.
Using the other non-ASCII-Editors (such as the dialog window editor) is explicitly allowed!
The user asking the original question proposed using the backslash in function names just like this: static void M\u0061in() Because this answer has already been read by other users it will not be accepted any more!
A user asked if it would be allowed to simply type in an .EXE file into the source code editor and to save the file as ".exe" instead of ".cs". Answer: I doub't that this is possible because both valid Windows and Linux binaries contain NUL bytes. However if you find a valid binary that can be created this way you have a valid solution.


The name of this site is "Programming Puzzles &amp; Code Golf" - this is a "Programming Puzzle", not "Code Golf": The challenge is to find a working solution before all other users, not to find a solution shorter than all other solutions.

Therefore the first post describing a working solution wins!

Good luck!

By the way: I have a solution working under Visual C# Express 2010.
C# Interactive Window
Open the C# Interactive Window (View &gt; Other Windows &gt; C# Interactive in Visual Studio 2015). I suppose not all IDEs will have this.
This approach executes C# in the Interactive Window in order to create a C# exe that prints the desired string without the author ever writing main. As a bonus, the exe's IL also does not contain main.
Run the following code in the Interactive Window
using System.Reflection;
using System.Reflection.Emit;
var appMeow = (dynamic)System.Type.GetType(&quot;System.AppDom&quot; + &quot;ain&quot;).GetProperty(&quot;CurrentDom&quot; + &quot;ain&quot;, BindingFlags.GetProperty | BindingFlags.Static | BindingFlags.Public).GetValue(null);
var asmName = new AssemblyName(&quot;MEOW&quot;);
var asmBuilder = appMeow.DefineDynamicAssembly(asmName, AssemblyBuilderAccess.RunAndSave);
var module = asmBuilder.DefineDynamicModule(&quot;MEOW&quot;, &quot;MEOW.exe&quot;);
var typeBuilder = module.DefineType(&quot;Meow&quot;, TypeAttributes.Public);
var entryPoint = typeBuilder.DefineMethod(&quot;EntryPoint&quot;, MethodAttributes.Static | MethodAttributes.Public);
var il = entryPoint.GetILGenerator();
il.Emit(OpCodes.Ldstr, &quot;Meow() is the meow method of C# programs!&quot;);
il.Emit(OpCodes.Ldstr, &quot;eow&quot;);
il.Emit(OpCodes.Ldstr, &quot;ain&quot;);
il.EmitCall(OpCodes.Call, typeof(string).GetMethod(&quot;Replace&quot;, new[] { typeof(string), typeof(string) }), null);
il.EmitCall(OpCodes.Call, typeof(Console).GetMethod(&quot;Write&quot;, new[] { typeof(string) }), null);
il.Emit(OpCodes.Ret);
var type = typeBuilder.CreateType();
asmBuilder.SetEntryPoint(type.GetMethods()[0]);
asmBuilder.Save(&quot;MEOW.exe&quot;);

Use Environmnent.CurrentDirectory to see where the exe was created. Run it to observe the desired output.

Resulting IL: