Skip to content

TaskDefinition.Triggers.Insert(0, trigger); ends by exception #1017

@LonDat

Description

@LonDat

Hello,

at first, thanks for amazing library.

For my reason, I want to use TaskDefinition.Triggers.Insert(0, trigger) on empty collection. But because of argument validation in Insert method, it ends by exception.
As TriggerCollection is IList, I believe it should be possible. And the .Insert(0, xxx) is working for TaskDefinition.Actions :)

Btw. the argument validation, in the Insert method, not cares about negative index value.
I do not know if this report is enough? Please ping if you want more. Or if I should try pull request?

Thanks a lot.

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