Current filter:
                                You should refresh the page.
                                  • See following examples:

                                    [VB.NET]
                                    Public Module Module1 ' CRR0027 Public Function Foo1(text1 As String, text2 As String) As Integer Return If((text1 Is Nothing) OrElse (text2 Is Nothing), -1, text1.Length + text2.Length) End Function ' CRR0027 Public Function Foo2(text1 As String, text2 As String) As Integer Return If((text1 IsNot Nothing) AndAlso (text2 IsNot Nothing), text1.Length + text2.Length, -1) End Function ' CRR0027 Public Function Foo3(text1 As String, text2 As String) As Integer Return If(Not ((text1 Is Nothing) OrElse (text2 Is Nothing)), text1.Length + text2.Length, -1) End Function 'No CRR0027 Public Function Bar1(text1 As String, text2 As String) As Integer If (text1 Is Nothing) OrElse (text2 Is Nothing) Then Return -1 Return text1.Length + text2.Length End Function 'No CRR0027 Public Function Bar2(text1 As String, text2 As String) As Integer Return If(text1 Is Nothing, -1, If(text2 Is Nothing, -1, text1.Length + text2.Length)) End Function End Module
                                • Pavel A (DevExpress) 06.06.2018

                                  Hello,

                                  Thank you for pointing out this issue and providing the code sample.
                                  We have reproduced it on our side.
                                  So, we will work on it and notify you when we make any progress.

                                1 Solution

                                Creation Date Importance Sort by

                                Fixed: