projects
/
mono.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Updated with review feedback.
[mono.git]
/
mcs
/
tests
/
gtest-autoproperty-22.cs
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
}