@bas-de-reuver this is an optional suggestion for the PropertySet function. It can be made a bit more robust by processing only for the supported properties by having else if (SupportedProperties.ContainsKey(name)) instead of the last else. Like so:
if ((name == "separator") && (value.Length > 0)) { separatorChar = value[0]; } else if (name == "fixedwidths") { fixedWidths = value.Split(',').Select(int.Parse).ToList(); separatorChar = '\0'; } else if (SupportedProperties.ContainsKey(name)) { SupportedProperties[name] = value == "0" ? false : true; }-
3 Votes36 Posts10k Views
-
0 Votes10 Posts34k Views
-
4 Votes12 Posts7k Views
-
0 Votes3 Posts569 Views
-
-2 Votes3 Posts747 Views
-
0 Votes3 Posts576 Views
-
0 Votes3 Posts951 Views
-
0 Votes3 Posts705 Views
-
0 Votes3 Posts2k Views
-
1 Votes4 Posts708 Views
-
0 Votes11 Posts2k Views
-
0 Votes34 Posts8k Views
-
0 Votes14 Posts2k Views
-
0 Votes7 Posts766 Views
-
0 Votes9 Posts1k Views
-
0 Votes9 Posts3k Views
-
0 Votes6 Posts2k Views
-
0 Votes4 Posts788 Views
-
0 Votes4 Posts910 Views
-
0 Votes17 Posts2k Views