When I try to use the bracket operator with an IDictionary or a HashDictionary, e.g.:
var myDict = new HashDictionary<String, String>();
myDict["foo"] = "bar";
it compiles fine, but the editor gives me a wavy line and the above error. I'm guessing this is a problem with my tools, more than the library, but have you seen it and/or do you have any idea how to fix it? I can work around it with Find() and UpdateOrAdd(), but the bracket syntax would be a lot nicer.
I'm using version 2.1.4492.18142, from NuGet, with VS 2010, C# 4.0, and Resharper.
There was a bug in the NuGet package which published the C5.Mono.dll along with the standard one, confusing the compiler.
It should be fixed in todays release - Update-Package C5...
When I try to use the bracket operator with an IDictionary or a HashDictionary, e.g.:
it compiles fine, but the editor gives me a wavy line and the above error. I'm guessing this is a problem with my tools, more than the library, but have you seen it and/or do you have any idea how to fix it? I can work around it with Find() and UpdateOrAdd(), but the bracket syntax would be a lot nicer.
I'm using version 2.1.4492.18142, from NuGet, with VS 2010, C# 4.0, and Resharper.