Skip to content

[G.NET] Allow to call multiple guard method on one If object #4

@mwereda

Description

@mwereda

Currently if one would like to guard variable against multiple conditions one need to write "check-line" for every condition:

Check.If(collection).IsNotEmpty();
Check.If(collection).HasItemsCountAtLeast(2);

It would be nice to split those two lines into one-liner:

Check.If(collection).IsNotEmpty().HasItemsCountAtLeast(2);

(above is not the best example but this shows the idea of problem)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions