Skip to content
Loading
0
  • 0
    Details as follows-
     
    //First IF is checking that Text Vale of (FirstName) is Not Null or white Space
    //if this is true then it goes to second IF- if (!string.IsNullOrWhiteSpace(fullName))
    //In Second If FullName is check that it should not have null or white space.
    //if this true then it add a comma into fullname which contains last name like  fullName += ", ";
    //After that it added firstName to FullName which having LastName as above
    //After That both If Condition the Result comes from  return fullName;
    0