PSv5+ has an intrinsic member available on [type] instances that facilitates constructor calls, which should be documented: the static ::new() method; e.g.:
# Same as:
# New-Object -TypeName regex -ArgumentList foo, Compiled
[regex]::new('foo', 'Compiled')
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
PSv5+ has an intrinsic member available on
[type]instances that facilitates constructor calls, which should be documented: the static::new()method; e.g.:Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.