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
You can not do that.
if you are trying to set an element you should...
public void addPackage(Package pack){
packages.Add(pack);
}
usage: MyClass m= new MyClass(); m.addPackage(new Package());
if you are trying to set the collection then ...
public List Packages
{
set { packages=value; }
get { return packages; }
}
usage:
MyClass m= new MyClass();
m.Packages=new List();