CS0212 Errors in VS 2010

According to MSDN, CS0212 does not exist in VS 2010 yet the Solution-Wide Analysis flags them.

CS0212:  "You can only take the address of an unfixed expression inside of a fixed statement initializer."

Is there a way to disable this "error"?

3 comments
Comment actions Permalink

Hello Austin
     Could you please provide a small sample of code where ReSharper highlights and error, yet Visual Studio compiles fine? Thank you!

Andrey Serebryansky

Senior Support Engineer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

In ReSharper 5.1, there are no errors.  In 6.0, the error shows up.  The issue is the underlined ampersand and the error is "you can only take the address of an unfixed expression inside of a fixed statement initializer."

CS0212.png

0
Comment actions Permalink

Hello, Austin

Could you please try to install R# 6.1 release build. Seems that we have fixed it.

Regards!

Kirill Falk
.NET Team QA Lead

0

Please sign in to leave a comment.