}
var value = "";
+ int csValue = -1;
var key = "";
var keyValueType = "";
{
keyValueType = reader.Value ?? "";
}
+ else if (reader.Name == "csapi")\r
+ {\r
+ csValue = (reader.Value == "on") ? 1 : 0;\r
+ }
}
}
break;
value = reader.Value;
if (keyValueType == "bool")
{
- if (bool.TryParse(value, out boolValue))
+ if (csValue != -1)\r
+ {\r
+ boolValue = (csValue == 1) ? true : false;\r
+ boolKeys.Add(new KeyValuePair<string, bool>(key, boolValue));\r
+ csValue = -1;\r
+ }
+ else if (bool.TryParse(value, out boolValue))
{
boolKeys.Add(new KeyValuePair<string, bool>(key, boolValue));
}