This is different than just obfuscating the final product. I wish to obfuscate the source code, so that it still can be read by the compiler, but it is significantly more difficult to read. This is an example for JavaScript:
https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx
It changes:
function NewObject(prefix)
{
var count=0;
this.SayHello=function(msg)
{
count++;
alert(prefix+msg);
}
this.GetCount=function()
{
return count;
}
}
var obj=new NewObject("Message : ");
obj.SayHello("You are welcome.");
to:
var _0x1579=["\x53\x61\x79\x48\x65\x6C\x6C\x6F","\x47\x65\x74\x43\x6F\x75\x6E\x74","\x4D\x65\x73\x73\x61\x67\x65\x20\x3A\x20","\x59\x6F\x75\x20\x61\x72\x65\x20\x77\x65\x6C\x63\x6F\x6D\x65\x2E"];function NewObject(_0xc74ex2){var _0xc74ex3=0;this[_0x1579[0]]= function(_0xc74ex4){_0xc74ex3++;alert(_0xc74ex2+ _0xc74ex4)};this[_0x1579[1]]= function(){return _0xc74ex3}}var obj= new NewObject(_0x1579[2]);obj.SayHello(_0x1579[3])
Is there something like this for c#? Thanks.