Skip to content

Use linq #1

Description

@vbjay
if somecollection.any(function(x) x.someboolcheck) then
...
end if

Instead of

 Dim Exists As Boolean = False
            For Each Target In Targets
                If Target Is Updatable Then
                    Exists = True
                    Exit For
                End If
            Next
Dim Exists As Boolean = Targets.Any(function(t) t Is Updatable)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions