Michael Scott
07/12/2021, 8:38 PMMike Robbins
07/12/2021, 8:52 PMMichael Scott
07/12/2021, 8:52 PMstalbert
07/12/2021, 9:09 PMvar
these days in C#? can C# now similarly infer the return type of functions as well (i.e. can you leave the string
out of the ComputeNonce()
method?dynamicl
07/12/2021, 9:20 PMMike Robbins
07/12/2021, 9:33 PMvar
most of the time. HMACSHA256 hashObject = new HMACSHA256()
is a bit redundant and most simple variable assignments seem to be like this. I probably should use long timestamp = ComputeTimestamp()
since it’s not obvious what the return type of that function is from the name, but to be frank, it looks like I copied this code from the NetSuite help and tweaked it for my use case. The string
is part of the method signature in the CompunteNonce()
method so I believe it is required there.