Init only collection property contructor from IEnumerable
I was wondering if there was a way to assign an IEnumerable to a init only collection property. For example I can do
But I was wondering if I could somehow do
I'm currently just looping through the enumerable and doing
But I was wondering if I could somehow do
I'm currently just looping through the enumerable and doing
psi.ArgumentList.Add(a); as a fallback but just wanted to check if there was another way