[1652] Lingering Issues - string.IsNullOrEmpty in Linq query

When testing for a string being null or empty in a Linq query,
!string.IsNullOrEmpty() returns a run-time error that it is not
supported.  Using string != null && string != string.Empty causes R# to
suggest string.IsNullOrEmpty, which, of course, causes the run-time error.

2 comments
Comment actions Permalink

Are you using .NET 1 ?


0
Comment actions Permalink

VS 2010, C# 4 .NET 4
Eugene Pasynkov wrote:

Are you using .NET 1 ?

>
>

---
Original message URL: http://www.jetbrains.net/devnet/message/5259958#5259958
 

0

Please sign in to leave a comment.