On one of our internal discussion aliases, someone asked why do we need a plus (+) the class name for FTP? Typically, you would expect this to work [Net.WebRequestMethods.Ftp], but it doesn’t. The solution is [Net.WebRequestMethods+Ftp] and it has something to do with nested classes In C#, a nested class looks something like public class List { public class Node // Node is inside List { // Node stuff
Read More...
Read the complete post at http://blogs.msdn.com/powershell/archive/2009/08/27/plus-in-net-class-names.aspx
Posted
Aug 26 2009, 06:29 PM
by
Windows PowerShell Blog