c# code as string code example Example 1: how to make a string in c# string teststring = ""; Example 2: /* String type demo program */ /* String type demo program */