Merge pull request #303 from ermshiperete/5278
[mono.git] / mcs / class / Microsoft.Build.Engine / Microsoft.Build.BuildEngine / ExpressionCollection.cs
index dd314aed9a8ed9f1fcd6416b7084cbd891a35c03..8c5c00aa6836a5f87da171b30eba278600e51f09 100644 (file)
@@ -48,7 +48,7 @@ namespace Microsoft.Build.BuildEngine {
                        string[] trueValuesArray = new string[] {"true", "on", "yes"};
                        string[] falseValuesArray = new string[] {"false", "off", "no"};
 
-                       boolValues = new Dictionary<string, bool> (StringComparer.InvariantCultureIgnoreCase);
+                       boolValues = new Dictionary<string, bool> (StringComparer.OrdinalIgnoreCase);
                        foreach (string s in trueValuesArray)
                                boolValues.Add (s, true);
                        foreach (string s in falseValuesArray)
@@ -155,8 +155,6 @@ namespace Microsoft.Build.BuildEngine {
 
                ITaskItem ConvertToITaskItem (Project project, ExpressionOptions options)
                {
-                       ITaskItem item;
-                       
                        if (objects == null)
                                throw new Exception ("Cannot cast empty expression to ITaskItem.");