Current filter:
                                You should refresh the page.
                                  • [DevExpress Support Team: CLONED FROM T419779: CodeRush for Roslyn switch code template does not seem to generate cases for enums]
                                    That's completely backwards. I shouldn't have type the condition I'm testing and then stuff it on the clipboard before I type switch.

                                    That design failure aside, it's still not working correctly. Given this code:

                                    enum ExternalCommunicationLicense { None, Development, Staging, Production }
                                    static class LicenseCheck {
                                        public static ExternalCommunicationLicense GetExternalCommuncationLicense() { /* Implementation irrelevant*/ }
                                    class TestClass
                                        void Method()

                                    Put "LicenseCheck.GetExternalCommuncationLicense()" on the clipboard and then press tab after sw above. When I try this, I still get the non-enum switch expansion.

                                    With Visual Studio's expansions, I get the expected enum-form expansion after typing or pasting the function call.

                                • Alex Eg (DevExpress) 09.16.2016

                                  Hi Dale,
                                  I have reproduced the issue. It seems that CodeRush for Roslyn doesn't work correctly when there is a method call in the clipboard. We will fix this issue in our future updates.

                                1 Solution

                                Creation Date Importance Sort by