Skip to content

Commit 5b89f0e

Browse files
committed
C#: Add example of const interpolated string.
1 parent 2a36744 commit 5b89f0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
using System;
2+
3+
public class MyConstStringInterpolationClass
4+
{
5+
public const string hello = "Hello";
6+
public const string helloWorld = $"{hello} World";
7+
public const string reallyHelloWorld = $"Really {helloWorld}";
8+
}

0 commit comments

Comments
 (0)