[cominterop] Default to [in] parameter direction when not specified explicitly.
[mono-project.git] / mcs / errors / cs1728.cs
blob3dc2c514a01a2abcce7333a3d4187498f1a8addc
1 // CS1728: Cannot create delegate from method `int?.GetValueOrDefault()' because it is a member of System.Nullable<T> type
2 // Line: 14
4 using System;
6 class C
8 delegate int Test ();
9 event Test MyEvent;
11 void Error ()
13 int? i = 0;
14 MyEvent += new Test (i.GetValueOrDefault);