Showing results for Type Shortcuts - PowerShell Team

Aug 26, 2009
0
1

Plus (+) in .NET Class Names

PowerShell Team
PowerShell Team

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

Type Shortcuts.net
Jul 12, 2006
0
0

Type Shortcuts

PowerShell Team
PowerShell Team

PSMDTAG:FAQ: What is a TYPE SHORTCUT?PSMDTAG:FAQ: What are the TYPE SHORTCUTS?   Type shortcuts are a Windows PowerShell feature that allows you to reduce the amount of typing you have to do when specifying a type.    For example, the following 2 statements produce the same result: [System.Text.RegularExpressions.Regex]"^c.*" [Regex...

FAQDOTNETLANGUAGE

Feedback