PowerShell Team

Automating the world one-liner at a time…

Plus (+) in .NET Class Names

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 ...