Solved

Comparing C# strings.

Posted on 2006-12-01
2
241 Views
Last Modified: 2010-04-16
I have if (String2LookIn == "about:blank") return "";
What is the appropriate way to compare this string?

0
Comment
Question by:mathieu_cupryk
2 Comments
 
LVL 29

Accepted Solution

by:
Nightman earned 250 total points
Comment Utility
That looks fine to me. What are you concerned about?
0
 
LVL 7

Expert Comment

by:nepali
Comment Utility
comparison is fine.. but its better to return string.Empty than a zero length string..
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In order to hide the "ugly" records selectors (triangles) in the rowheaders, here are some suggestions. Microsoft doesn't have a direct method/property to do it. You can only hide the rowheader column. First solution, the easy way The first sol…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now