32
1
using System;
2
3
public class Program
4
{
5
public static void Main()
6
{
7
Console.WriteLine("Hello World!");
8
var firstInstance = StaticClass.StaticInstance1;
9
}
10
}
11
12
public class DummyClass
13
{
14
public string FirstProperty {get;set;}
15
public string SecondProperty {get;set;}
16
}
17
18
public class StaticClass
19
{
20
public static DummyClass StaticInstance1 = new DummyClass()
21
{
22
FirstProperty = "A",
23
SecondProperty = StaticInstance2.SecondProperty
24
};
25
26
public static DummyClass StaticInstance2 = new DummyClass()
27
{
28
FirstProperty = "A",
29
SecondProperty = "B"
30
};
31
32
}
Cached Result