How to: Use AddRange for a List
List<string> list =
new List<string>().AddRange(File.ReadAllLines(path, Encoding.UTF8);
It is a variable which is declared globally - what is my mistake?
The error is equal to
Converting from string to void is not allowed
You can simply change your code to this: