Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
C# Understanding This IF Statement Logic
Luke Rayner
Jan 27 2016 4:58 AM
312
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
add, Edit, delete in C#
how to query data on parse.com use curl to c#