Current filter:
                                You should refresh the page.
                                  • Hello,

                                    In the code below, when the cursor is on "return", the "convert to function" is available

                                    [C#]
                                    public class Person { public string Firstname { get; set; } public string LastName { get; set; } public void Fullname() { return $@"{Firstname} {LastName}"; } }

                                    but here not, here it's a string but it's the same for all type of object. :

                                    [C#]
                                    public class Person { public string Firstname { get; set; } public string LastName { get; set; } public void Fullname() => $@"{Firstname} {LastName}"; }
                                • Pavel A (DevExpress) 03.15.2017

                                  Hello Christian,

                                  Thank you for providing code snippets.
                                  We agree with you that the "Convert to Function" refactoring should be available in this case.
                                  We will notify you as soon as we fix this.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: