#Learncode005 codeing channel, learning codeing easy
//what is String Interpolation &
//what is String.Format()
//what is date time ?
string firstName = "Raul";
string lastName = "Martinez";
//prints "Full Name : Raul Martinez"
Console.WriteLine(string.Format("Full Name : {0} {1}", firstName, lastName));
//example of string Interpolation
Console.WriteLine($"Full Name with interpolation example : {firstName} {lastName}");
string date = DateTime.Now.ToString();
Console.WriteLine($"Date time : {date}");
string interpolation : https://thedotnetguide.com/string-interpolation-in-csharp/
Date time https://learn.microsoft.com/en-us/dotnet/api/system.datetime.now?view=net-9.0
Download
0 formats
No download links available.
what is String Interpolation &//what is String.Format() //what is date time ? | NatokHD