-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Description
Follow-up from #8274:
The purpose of this topic is to discuss PowerShell's "member magic", i.e. when it exposes members on instances and types that aren't natively present on the .NET instance or type at hand (irrespective of the .NET types involved, and separately from the ETS).
As such, it would be helpful to have a complete list of intrinsic members - even in cases where specific members are discussed in more detail elsewhere.
An existing example are the intrinsic .Where() and .ForEach() array methods, which are commendable mentioned here, with a link to the topic where they're discussed in detail.
The intrinsic members currently missing are:
-
::new(), as discussed in Information about the::new()method for constructor calls is missing #8274 -
the intrinsic indexer available even on scalars (e.g.,
(42)[0]->42) (previously asked for in Information is incomplete #7795, which was only partially addressed).
There may be others - it's worth making sure all are covered.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 15dca519-1493-9908-3e0b-5a019c696834
- Version Independent ID: f9a188cd-3cfa-4b44-da47-48340ec8fc36
- Content: about_Intrinsic_Members - PowerShell
- Content Source: reference/7.2/Microsoft.PowerShell.Core/About/about_Intrinsic_Members.md
- Product: powershell
- Technology: powershell-conceptual
- GitHub Login: @sdwheeler
- Microsoft Alias: sewhee