Check out example codes for "c# string formatting". It will help you in understanding the concepts better.

Code Example 1

using System;

namespace FormatingTest
    class Program
        static void Main(string[] args)
            string s = "Name:{0} {1}, Location:{2}, Age:{3}";
            string msg = string.Format(s, "Ram", "Singh", "Mumbai", 32);
            Console.WriteLine("Format Result: {0}", msg);
            Console.WriteLine("\nPress Enter Key to Exit..");

Code Example 2

name = "Bob";
age = 27;
info = $"Your name is {name} and you are {age} years old";

Learn ReactJs, React Native from