TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
kastion
NA
9
0
C# Beginner Question (Passing NULL string to function)
Apr 22 2008 1:54 PM
I'm running a function where there's two strings being passed. Under some circumstances the second string may be NULL, what I'm wondering is will C# give warnings/errors for passing null values in this manenr? Can I essentially do something like this:
private Boolean MyFunction(String _ParamOne, String _ParamTwo)
{
if (_ParamTwo == null)
{
run_myfunction();
doThis(_ParamOne);
return false;
} else {
run_myfunction();
doThat(_ParamOne, _ParamTwo);
return false;
}
}
On the same note does anyone know any good resources where I can search for information on things like this as well as syntax, system functions and what-not? I've been programming for quite some time but I'm new to C# and still getting a feel for it. Thanks.
Reply
Answers (
1
)
Detect Runtime Error from another application.
About Linq...