Skip to content

InvokeDscResourceTestResult should have a implict bool operator #108

Description

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions