Michael Klement
Michael Klement
I agree that _nested_ can be ambiguous, but [object graph](https://en.wikipedia.org/wiki/Object_graph) is actually a [term of art](https://www.ahdictionary.com/word/search.html?q=term%20of%20art) (emphasis added, though note that the linked Wikipedia article is flagged for not being...
Good idea; first reported / suggested in: * #14350
@sean-r-williams, I think the proper way to resolve this is to _implicitly_ use `[ordered]` hashtables, as previously suggested in: * #19070
@sean-r-williams: * Adding support for `[ordered]` hashtable literals in `*.psd1` files, for consistency, makes sense. * However, the _implicit_ solution of making `Import-PowerShellDataFile` return (potentially nested) [`[System.Management.Automation.OrderedHashtable]`](https://learn.microsoft.com/en-US/dotnet/api/System.Management.Automation.OrderedHashtable) instances would obviate...
This sounds related to the following issue, and the shared root cause seems to be overzealous DLR optimizations related to local variables; in general, these local-variable optimizations occur by default,...
Type-native members have always taken precedence over [intrinsic PowerShell members](https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_Intrinsic_Members), and it would be too late to change that now. While this particular case is unfortunate, it cannot be helped...
Good to know, @IISResetMe, but I think you meant [``[System.Collections.ObjectModel.Collection`1]``](https://learn.microsoft.com/en-US/dotnet/api/System.Collections.ObjectModel.Collection-1) (`ObjectModel` rather than `ComponentModel`); e.g.: ```powershell $list = [System.Collections.ObjectModel.Collection[int]]::new([int[]](1,2,3)) # Since this type does NOT have a .ForEach() method, PowerShell's...
@iRon7, `$list = [System.Collections.ObjectModel.Collection[int]]::new(); $list.Add(4)` works fine. The only time you get a read-only collection is if you use the constructor overload that takes a ``IList`1`` instance (which the resulting...
@DarkLite1, glancing at the PR the new method will (sensibly) become available on _all_ types (except if shadowed by a type-native member of the same name, which is then highly...
This was first discussed in [#8692](https://github.com/PowerShell/PowerShell/issues/8692) (improve the parameter presentation in syntax diagrams). See also: - [#6856](https://github.com/PowerShell/PowerShell/issues/6856) (show parameter-set names) - [#4135](https://github.com/PowerShell/PowerShell/issues/4135) (indicate pipeline-binding parameters) - [#4715](https://github.com/PowerShell/PowerShell/issues/4715) (indicate parameters with...