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:
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.
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 #8274the 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.