svn path=/trunk/mcs/; revision=75430
else if (reader.LocalName == "lockElements") {
LockElements.SetFromList (reader.Value);
}
- else if (reader.LocalName == "lockItem") {
- LockItem = (reader.Value.ToLower() == "true");
+ else if (reader.LocalName == "lockItem") {\r
+ LockItem = (reader.Value.ToLowerInvariant () == "true");
}
else if (reader.LocalName == "xmlns") {
/* ignore */
string unrestricted = securityElement.Attribute ("Unrestricted");
if (unrestricted != null) {
- this.unrestricted = (String.Compare (unrestricted, "true", true) == 0);
+ this.unrestricted = (String.Compare (unrestricted, "true", StringComparison.InvariantCultureIgnoreCase) == 0);
}
}
string flag;
- flag = configurationValues ["useMachineProtection"];
- if (flag != null && flag.ToLower() == "true")
+ flag = configurationValues ["useMachineProtection"];\r
+ if (flag != null && flag.ToLowerInvariant () == "true")\r
useMachineProtection = true;
}