mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
359 B
23 lines
359 B
using System; |
|
|
|
internal class MemberInitializerSingleCtor |
|
{ |
|
private int field = Compute(1); |
|
|
|
private int Property { get; } = Compute(2); |
|
|
|
public MemberInitializerSingleCtor() |
|
{ |
|
Console.WriteLine(field + Property); |
|
} |
|
|
|
private static int Compute(int value) |
|
{ |
|
return value; |
|
} |
|
|
|
private static void Main() |
|
{ |
|
new MemberInitializerSingleCtor(); |
|
} |
|
}
|
|
|