1 // cs0120-2.cs: `Test.Add8(int)': An object reference is required for the nonstatic field, method or property
5 using System
.Threading
;
6 using System
.Reflection
;
7 using System
.Reflection
.Emit
;
11 public Test () : this (Add8(4), 6) {
12 string hostName
= System
.Net
.Dns
.GetHostName ();
13 Console
.WriteLine ("Hostname: " + hostName
);
16 public Test (int i
, int j
) {
17 Console
.WriteLine ("GOT : " + i
+ " : " + j
);
21 public static void Main (String
[] args
) {
25 private int Add8 (int i
) {