Can one of you fine C# experts decipher this for me?
int Length = 42;
return new[] {(byte) (0x80 | Length)};
I found this in some on-line code (slightly modified now). But I'm not quite sure what it is saying. If someone could explain and/or re-write it in VB or Powershell that would be awesome.
I have googled for hours but my google-foo seems to be a little weak on this one.
EDIT: I've been told this question was not well worded because the code didn't work. I have attempted to re-write it to make it more universally appealing.
For reference, the original source is here: https://github.com/Sleepw4lker/TameMyCerts/blob/main/TameMyCerts/X509/X509CertificateExtension.cs
For anyone interested. I believe I was able to re-write this in Powershell.
[int]$Length = 42
Return ([byte[]](0x80 -bor $Length))