In PowerShell 2.0 the new way to create a Dictionary
is:
$object = New-Object 'system.collections.generic.dictionary[string,int]'
More Related Contents:
- How can I run PowerShell with the .NET 4 runtime?
- File / folder chooser dialog from a Windows batch script
- Powershell v3 Invoke-WebRequest HTTPS error
- Using .NET objects within a Powershell (V5) class
- How can I use a MySql User Defined Variable in a .NET MySqlCommand?
- Deep copying a PSObject
- How can I check if a string is null or empty in PowerShell?
- PowerShell script to return versions of .NET Framework on a machine?
- How to create System.IO.StreamWriter with Encoding in Powershell?
- How to check an exchange mailbox via powershell?
- Determine if windows is currently playing sound
- What’s the best way to automate secure FTP in PowerShell?
- Powershell Calling .NET Assembly that uses App.config
- What do you call these? [array][string][int]
- Powershell Unload Module… completely
- What do Option Strict and Option Explicit do?
- How can I determine if a .NET assembly was built for x86 or x64?
- .Net HttpWebRequest.GetResponse() raises exception when http status code 400 (bad request) is returned
- How exactly does the “Specific Version” property of an assembly reference work in Visual Studio?
- Best way to hide a window from the Alt-Tab program switcher?
- How to measure code performance in .NET?
- How do I open an already opened file with a .net StreamReader?
- Using app.config with a class library
- Windows: List and Launch applications associated with an extension
- Cause this VB6-like smell, which VB.NET allows, to error instead: WinFormType.InstanceProp=Value [DISABLE My.Forms]
- Setting tab order in WPF
- How to find the main() entry point in a VB.Net winforms app?
- What version of .NET ships with what version of Windows?
- Integrate existing ASP.NET MVC application with Orchard CMS
- Serializing a list of Key/Value pairs to XML