Skip to content

Commit 8cfa247

Browse files
Utilize the static virtual methods defining in TestDuplication example
1 parent 7629f32 commit 8cfa247

File tree

1 file changed

+6
-0
lines changed
  • docs/csharp/whats-new/tutorials/snippets/staticinterfaces

1 file changed

+6
-0
lines changed

docs/csharp/whats-new/tutorials/snippets/staticinterfaces/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@
99
Console.WriteLine(str++);
1010
// </TestRepeat>
1111

12+
// <TestDuplication>
13+
var num = new Duplicate(2);
14+
num++;
15+
Console.WriteLine(num.ToString());
16+
// </TestDuplication>
17+
1218
// <TestAddition>
1319
var pt = new Point<int>(3, 4);
1420

0 commit comments

Comments
 (0)