Adding types

suggest change

Add 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)

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents