My question is: can we write:
String s="Sarath"; MessageBox.Show("My Name is Sarath {0}",s);
I want to get the name in {0} ..... Is there a way ...
Thanks in advance.
use String.Format for this;)
string myName = "Sarath"; MessageBox.Show(String.Format("My name is {0}.", myName));
Source: https://habr.com/ru/post/1765398/More articles:Error php memcached - phpdo you think i should keep all my php functions in one file? - functionКак проверить порядок издевающихся вызовов с помощью EasyMock - javaDetect if there is no system activity in the browser (including activity outside the browser) - javascriptDoes the UITableViewController have special behavior when deleting the UINavigationController stack? - objective-cRemoving string double quotes in Haskell - stringEdit Delete update button to the right of gridview asp.net - gridviewСинхронизация событий с Календарем Google - synchronizationadding an extra field to django-registration using signals - djangoHow to isolate only one color in an image using PHP? - phpAll Articles