Quote:
Can I print the list string value as follows?
public List<string> students=new List<string>();
hmmm. Short answer no. because there hardly any code there beside the variable declaration. Here is an example on how to print a list:
https://www.dotnetperls.com/list[
^]
Quote:
In additon,Should I send the string list value parameter this way.(List<string> students)
That look ok.
Simple example:
List<string> students = new List<string>();
students.Add("student 1");
students.Add("student 2");
students.Add("student 3");
students.Add("student 4");
foreach (string student in students) {
Console.WriteLine(student);
}
By the way, the
send
method look odd, I think it should look something like
public static void Send(string path, int numberid, List<string> students, string content)
{
}