Debian Codegraph @

mcs/tests/gtest-autoproperty-22.cs

raw symbols SCIP
1 using System;
2
3 class MainClass
4 {
5 public static void Main()
6 {
7 Child test = new Child();
8 }
9 }
10
11 class Parent
12 {
13 protected virtual string Property { get; }
14 }
15
16 class Child : Parent
17 {
18 protected override string Property { get; }
19
20 public Child ()
21 {
22 new AnotherClass{ field = Property = "success" };
23 Console.WriteLine(Property);
24 }
25 }
26
27 class AnotherClass
28 {
29 public string field;
30 }