Bug - Reformat Code - reorder type members breaks structures

If you use Reformat Code with Reorder Type members, it reorders structs too. R# should not reorder members of a class or struct with a StructLayout attribute.

In my case, I use both classes and structs but they all have StructLayout attributes (certain P/Invoke calls are easier with classes instead of structs). Those types members are sensitive and must be skipped.

--Oren

1 comment
Comment actions Permalink

This problem is fixed in 4.0

--
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Oren Novotny" <no_reply@jetbrains.com> wrote in message
news:23622838.1199586933405.JavaMail.itn@is.intellij.net...

If you use Reformat Code with Reorder Type members, it reorders structs
too. R# should not reorder members of a class or struct with a
StructLayout attribute.

>

In my case, I use both classes and structs but they all have StructLayout
attributes (certain P/Invoke calls are easier with classes instead of
structs). Those types members are sensitive and must be skipped.

>

--Oren



0

Please sign in to leave a comment.