Skip to content

InvokeDscResourceTestResult should have a implict bool operator #108

@ThomasNieto

Description

@ThomasNieto

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;

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