Getter and setter methods don't "work for only one string/value" - they work for one instance of the class type for which the property is declared.
So a string property gets and sets a single string:
public string MyStringProperty
{
get { return myString; }
set { myString = value; }
}
and an integer property works with a single integer:
public int MyIntegerProperty
{
get { return myInt; }
set { myInt = value; }
}
But the type can be anything! A custom class:
public MyClass MyClassProperty
{
get { return myClass; }
set { myClass = value; }
}
A DataTable:
public DataTable MyDataTableProperty
{
get { return myDataGridView.DataSource; }
set { myDataGridView.DataSource = value; }
}
A List of strings:
public List<string> MyStringListProperty
{
get { return myStringList; }
set { myStringList = value; }
}
If you want to pass multiple values, just package them in an appropriate collection, and create a property that gets and sets that collection...