Comparing C# strings.

I have if (String2LookIn == "about:blank") return "";
What is the appropriate way to compare this string?

Who is Participating?
NightmanConnect With a Mentor CTOCommented:
That looks fine to me. What are you concerned about?
comparison is fine.. but its better to return string.Empty than a zero length string..
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.