a few months ago, I noticed a breaking change in how Enumerations were evaluated within boolean expressions. Which lead me from switching one of my most ancients behaviors: How to check whether a parameter was bound:
Previously
- if ($PSBoundParameters["BackgroundColor"])
- # ...
- }
currently
- if ($PSBoundParameters.ContainsKey("BackgroundColor"))
- # ...
- }
Soooo ... I know you implemented Primal Sense for the previous method at my request back then (many thanks, it has served me well), would you mind also adding Primal Sense for the precise method of determining whether a parameter was bound?
Cheers,
Bosparan