Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
2
Answers
C# Understanding This IF Statement Logic
Luke Rayner
8y
329
1
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
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
add, Edit, delete in C#
how to query data on parse.com use curl to c#