To get the full name in C#, you can use string manipulation techniques such as concatenation or a specific method to extract the first and last name and join them together. Here's an example using concatenation:
main.cs98 chars4 lines
Alternatively, you can also use the String.Format()
method to format the string:
main.cs65 chars2 lines
In both cases, the output would be "John Doe" as the full name.
gistlibby LogSnag