Adding types
suggest changeBy Assembly Name, add library
Add-Type -AssemblyName "System.Math"
or by file path:
Add-Type -Path "D:\Libs\CustomMath.dll"
To Use added type:
[CustomMath.NameSpace]::Method(param1, $variableParam, [int]castMeAsIntParam)
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents