sharpliner / sharpliner

Use C# instead of YAML to define your Azure DevOps pipelines
https://www.nuget.org/packages/Sharpliner/
MIT License
285 stars 21 forks source link

Add implicit cast from `IEnumerable<T>` to `ConditionedList<T>` #243

Closed premun closed 1 year ago

premun commented 1 year ago

Example that should compile:

new Job("Foo")
{
    Pool = new HostedPool()
    {
        Demands = new[] { "ImageOverride -equals 1es-ubuntu-2004" }
    },
}

but it requires new() as is new ConditionedList<string> which might be unclear.