C# Activator createInstance for extending class
问题 I have a base class, which is as follows: public Data() { id = num++; SetVariables(); } //fill every Variable varNames, parseInduction, noise, seperator in Children Classes public Data(String line) { //first declare all variables in sub classes if (id == 0) throw new NotSupportedException("You are not allowed to use this constructor for creating the first instance!"); id = num++; SetVariables(); parseLine(line); } And i also have a Sub Class extending this Class. class DienstGruppe : Data {