Adding types
suggest changeAdd an assembly by name. System.Math is a type in the core libraries, not an assembly name:
Add-Type -AssemblyName System.Windows.Forms
or by file path:
Add-Type -Path "D:\Libs\CustomMath.dll"
To use an added type:
[CustomMath.NameSpace]::Method($param1, $variableParam, [int]$castMeAsIntParam)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents