1 // Compiler options: -warnaserror
7 public Car MyCar { get; set; }
12 public int Year { get; set; }
20 public class MainClass
26 public static Person MyPerson1 { get; }
= new Person();
27 public static Person MyPerson2
= new Person();
28 public const Person MyPerson3
= null;
29 public static event Action Act
= null;
30 public static dynamic BBB
= null;
32 void ParameterTest (Person ParPerson
)
34 Console
.WriteLine (nameof (ParPerson
.MyCar
.Year
));
37 public static int Main ()
41 name
= nameof (MyPerson1
.MyCar
.Year
);
45 name
= nameof (MyPerson2
.MyCar
.Year
);
49 name
= nameof (MyPerson3
.MyCar
.Year
);
53 name
= nameof (Act
.Method
.MemberType
);
54 if (name
!= "MemberType")
57 name
= nameof (BBB
.A
.B
.C
);
61 name
= nameof (EE
.K
.ToString
);
62 if (name
!= "ToString")
65 name
= nameof (int.ToString
);
66 if (name
!= "ToString")
69 Person LocPerson
= null;
70 name
= nameof (LocPerson
.MyCar
.Year
);