Selerix Developer Tools
CompareIgnoreNulls Method






Selerix.Foundation Assembly > Selerix.Foundation.Data Namespace > Utils Class : CompareIgnoreNulls Method
Compares two strings and returns true if they are the same. For the comparison, nulls and empty strings are treated as equal and leading and trailing spaces are ignored.
Syntax
'Declaration
 
Public Shared Function CompareIgnoreNulls( _
   ByVal str1 As String, _
   ByVal str2 As String _
) As Boolean
'Usage
 
Dim str1 As String
Dim str2 As String
Dim value As Boolean
 
value = Utils.CompareIgnoreNulls(str1, str2)
public static bool CompareIgnoreNulls( 
   string str1,
   string str2
)
public function CompareIgnoreNulls( 
    str1: String;
    str2: String
): Boolean; static; 
public static function CompareIgnoreNulls( 
   str1 : String,
   str2 : String
) : boolean;
public: static bool CompareIgnoreNulls( 
   string* str1,
   string* str2
) 
public:
static bool CompareIgnoreNulls( 
   String^ str1,
   String^ str2
) 

Parameters

str1
str2
See Also

Reference

Utils Class
Utils Members