PowerShell / PSDesiredStateConfiguration

Source for https://www.powershellgallery.com/packages/PSDesiredStateConfiguration module
MIT License
58 stars 14 forks source link

InvokeDscResourceTestResult should have a implict bool operator #108

Open ThomasNieto opened 1 year ago

ThomasNieto commented 1 year ago

Summary of the new feature / enhancement

I would like InvokeDscResourceTestResult to have an implicit cast operator to bool so that I can use the result in if statements and other places bool is useful.

Proposed technical implementation details (optional)

public static implicit operator bool(InvokeDscResourceTestResult result) => result.InDesiredState;