I have a class with many fields and about half of them are public. Right now it looks like this:
public int someint1, someint2, someint3;
public string str1, str2;
public bool[] boolArray;
public List<string> listOfStrings;
…and so on. And after that there are some private fields.
Is it possible to write public
just once for all those public fields?