I\'m trying to make a manual setter/getter method in C#, but i\'m getting the following error from the \"set\"-line: Error: The best overloaded method match for \'System.Col
Your code should look like this.
private var packages = new List();
public List Packages
{
set { packages = value; }
get { return packages; }
}
If you're trying to use the index getter/setter for some kind of passthrough:
public int this[int key]
{
get
{
return Packages[key];
}
set
{
Packages[key] = value;
}
}