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
Luke Rayner
NA
7
4.2k
C# Understanding This IF Statement Logic
Jan 27 2016 4:58 AM
Hi I have just used some code off a website for one of my classes in my C# project, I dont really understand all of the logic behind it as i am new to coding with C#. I was wondering if someone was able to write this code in pseudo and also explain the logic behind it.
string fullName = LastName;
if (!string.IsNullOrWhiteSpace(FirstName))
{
if (!string.IsNullOrWhiteSpace(fullName))
{
fullName += ", ";
}
fullName += FirstName;
}
return fullName;
Thank you
Reply
Answers (
2
)
add, Edit, delete in C#
how to query data on parse.com use curl to c#