C# Code Not Showing Any Results

I wrote a c# code to generate a nonce but its not giving any result.
Not Just This nonce generation code, ive used a lot of c# codes some are working and some are not what making me use nodejs or ironpython scripts instead. But i preffer to use c#

so any solution?

You don’t need to create all those classes or a main method. Also Console.WriteLine will not show in debugger, use data.Logger.LogObject

Erase all that, replace with only

static string GenerateNonce(){
     return Guid.NewGuid().ToString();
}

data.Logger.LogObject(GenerateNonce());

Now everywhere u need it, just use GenerateNonce() or if in interpolated mode <GenerateNonce()>

3 Likes

Thanks For Help, It works