Merge "[NUI] Fix Build warnings: GetFunctionPointerFor"
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / internal / Application.cs
index 65f75dc..5447fd4 100755 (executable)
@@ -1156,7 +1156,7 @@ namespace Tizen.NUI
         /// <returns>true if added successfully, false otherwise</returns>
         public bool AddIdle(System.Delegate func)
         {
-            System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
+            System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
             System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));
 
             bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));