Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS 2010 editor complains "Cannot apply indexing to an expression of type C5.IDictionary<...>" #12

Closed
chronodm opened this issue Mar 14, 2013 · 1 comment
Labels
compatibility Project not working on different platforms

Comments

@chronodm
Copy link

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.

@ondfisk
Copy link
Collaborator

ondfisk commented Mar 15, 2013

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...

@ondfisk ondfisk closed this as completed May 14, 2013
@JnxF JnxF added the compatibility Project not working on different platforms label Mar 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compatibility Project not working on different platforms
Projects
None yet
Development

No branches or pull requests

3 participants