Skip to content

Feature Request: add [Ordered] type accelerator #10513

@iRon7

Description

@iRon7

Add System.Collections.Specialized.OrderedDictionary as Ordered to the PowerShell type accelerators (not sure if this request is related or similar to: #9512).

Currently the the-is operator returns an error for the Ordered type although I am able to use it in the constructor:

$Ordered = [Ordered]@{a=1}
$Ordered -is [Ordered]

Unable to find type [Ordered].
At line:1 char:14
+ $Ordered -is [Ordered]
+              ~~~~~~~~~
+ CategoryInfo          : InvalidOperation: (Ordered:TypeName) [], RuntimeException
+ FullyQualifiedErrorId : TypeNotFound

As with e.g. the semver type, I would expect to be able to use the same type (accelerator) for comparison as for the constructor:

$Semver = [semver]'1.2.3'
$Semver -is [semver]
True

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Enginecore PowerShell engine, interpreter, and runtime

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions