You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Amend "about_Methods" to contrast the syntax differences with argument mode, show pitfalls #2308
Conversely, for someone coming from the developer world, calling your own helper functions such as function foo ($bar, $baz) { ... } as foo('one', 'two') is a real temptation, with a rude awakening.
Also making it clear that method calls are limited to expression mode and are essentially a
pass-through feature to the realm PowerShell is built on, the .NET framework, which is a realm with different rules and syntax.
Add a reference to about_Parsing
On a side note, I also suggest revise the following confusing sentence re member enumeration which is present not only in about_Methods, but also about_Properties:
If the method [/ property] exists on the individual objects and on the collection, PowerShell does not alter the result.
This should read something like:
If the method / property exists on both the individual objects and on the collection itself, it is (only) the collection's member that is invoked.
changed the title [-]Amend "about_Methods" to contrast the syntax differences with argument mode[/-][+]Amend "about_Methods" to contrast the syntax differences with argument mode, show pitfalls[/+]on Apr 8, 2018
Activity
[-]Amend "about_Methods" to contrast the syntax differences with argument mode[/-][+]Amend "about_Methods" to contrast the syntax differences with argument mode, show pitfalls[/+]Closes MicrosoftDocs#2308 MicrosoftDocs#2198 - Rewrite about_methods …