1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
using System; partial class C { static partial void Partial (int i = 8); static partial void Partial (int i) { if (i != 8) throw new ApplicationException (); } public static int Main () { Partial (); return 0; } }