I have the following piece of code:
private List<IComponent> _components;
protected void UsePageComponents(params IComponent[] components) => _components = components.ToList();
I receive an array with params
and I would like to append this array to the List (_components
)`? How do I accomplish this using LINQ?