f string C#
string name = "John"
Console.WriteLine($"Hello {name}")// To use interpolation in strings, put the name of the relevant
// variable between brackets {} and put a dollar sign $ in front
// of the string. This will tell C# to use interpolation.
double a = 3;
double b = 4;
Console.WriteLine($"Area of {a} and {b} is {0.5 * a * b}");
Also in C#:
- instantiate offset unity
- split on uppercase c#
- How to search for a string from readline in c#
- how to convert iformfile to byte array c#
- c# type of generic is string
- c# convert excel column index to letter
- c# warning CS0108
- use newtonsoft json to clone object
- asp net identity add a unique fields to user
- or in unity
- c# loop through two dimensional array
- c# get all inherited classes of a class
- codecademy
- unity accessing 2d pointlight from c# script
- Unity C# make object face away
- how to compare datetime in c#
- c# empty array
- c# create new thread
- c# list get sublist
- choose random gameobject from a gameobject list
- blazor display validation message
- c sharp substring
- how to say or in c#
- c# convert to nullable datetime