@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 Posts11k Views
-
0 Votes10 Posts34k Views
-
4 Votes12 Posts7k Views
-
0 Votes3 Posts602 Views
-
-2 Votes3 Posts785 Views
-
0 Votes3 Posts605 Views
-
0 Votes3 Posts986 Views
-
0 Votes3 Posts737 Views
-
0 Votes3 Posts2k Views
-
1 Votes4 Posts756 Views
-
0 Votes11 Posts2k Views
-
0 Votes34 Posts9k Views
-
0 Votes14 Posts2k Views
-
0 Votes7 Posts821 Views
-
0 Votes9 Posts2k Views
-
0 Votes9 Posts3k Views
-
0 Votes6 Posts2k Views
-
0 Votes4 Posts831 Views
-
0 Votes4 Posts950 Views
-
0 Votes17 Posts2k Views