Solved

Explenation needed about a function

Posted on 2012-03-14
1
194 Views
Last Modified: 2012-08-13
Hi,

i have this:

        static bool CheckType(string value)
        {
            return value.Contains(",") || value.Contains(".");
        }

Can someone comment these code-lines for me
I need an explenation about this function.

Thank you in advanced,

Greetings,

Peter Kiers
0
Comment
Question by:peterkiers
1 Comment
 
LVL 36

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 37719560
return will be true when value contains "," or "."
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

705 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

23 Experts available now in Live!

Get 1:1 Help Now