public class Class
{
string field1;
int field2;
bool field3;
public Class(string field1, int field2, bool field3)
{
this.field1 = field1;
this.field2 = field2;
this.field3 = field3;
}
}
Is there any way to do this in a more clean/less redundant way? This gets a bit annoying when you have a lot of parameters.