mercredi 22 novembre 2023

how to use reflection to change non existing field in c#?

I have below code block and it should print 404 without using unsafe code or any changes to the Mutate method

const string constStr = "000";
Mutate(constStr);
var nonConst = "000";
Console.WriteLine(nonConst);  

static void Mutate(string str)
{
    
}```




Aucun commentaire:

Enregistrer un commentaire