The task is such, there is a class containing an array of strings. How to make it so that when describing an object of a class, it was possible to pass any number of lines to the constructor. (In the constructor, strings are accepted using params)
Class A { string[] str; public A(params string[] str1) { for (int i = 0; i < Str.Length;i++ ) Str[i] = str1[i]; } }
Swears at such a record, saying that an array of null, how to make it rubber?