To add C# code unsafe, I'm trying this:
Add-Type -TypeDefinition $code `
-UsingNamespace 'System.Runtime.InteropServices','System.Text' `
-CompilerParameters '/unsafe'But it fails.
PowerShell says -CompilerParameters is wrong.
How should I correct it?
TIA