CurrentThreadName.Name == null
Why is that that the following expression is indicated to be 'always false' by ReSharper:
if (System.Threading.Thread.CurrentThread.Name == null)
I did search the forums for this particular call and found nothing. I am also a newbie so apologies if the answer is obvious.
Obviously, I do not believe that the expression is always false.
I am using Visual Studio 2010 with the last (just downloaded it) version of ReSharper.
Please sign in to leave a comment.
You are correct according to msdn anyhow ( http://msdn.microsoft.com/en-us/library/system.threading.thread.name.aspx )
"A string containing the name of the thread, or null if no name was set."
I believe this problem of R# issuing a bogus always-false warning for Thread.Name == null
has been fixed with ReSharper 6.
But perhaps I'm wrong, or else why hasn't a ReSharper dev posted such a response here?
And do ReSharper releases have release notes? I've see the new feature discussions on your web site, but where can I find a list of issues fixed with a particular ReSharper release?
Thanks,
Jim Stearns
Hello Jim,
Yes, this problem was fixed in ReSharper 6. You can view the list of all
issues fixed in ReSharper 6 using this search: http://youtrack.jetbrains.net/issues?q=fixfor%3A6.0state%3AFixed.
Thank you!
Andrey Serebryansky
Senior Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"