iManage Blog: Artificial Intelligence


PowerShell Type Accelerators – shortcuts to .NET classes

Type Accelerators are a great PowerShell feature that allows shortcuts to .NET classes. When writing .NET code, once a namespace is imported with the ‘using’ directive, types in that namespace can be used without referencing the namespace itself: [csharp]using System.Collections.Generic; List l = new List(); // Instead of: System.Collections.Generic.List l = new System.Collections.Generic.List();[/csharp] However, it’s