Sometimes ContainsCase method in StringExtensions.cs causes NullReference
Exception.
I fixed this by adding
if (text == null)
return false;
check to begginning of method. Now method code is :
public static bool ContainsCase(this string text, string find, bool
ignoreCase)
{
if (text == null)
return false;
var comparison = ignoreCase ?
StringComparison.InvariantCultureIgnoreCase :
StringComparison.InvariantCulture;
var endIndex = text.IndexOf(find, 0, comparison);
return endIndex >= 0;
}
Can we add this fix to SVN, please ?
Andrus.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"DbLinq" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/dblinq?hl=en
-~----------~----~----~----~------~----~------~--~---