|
|
@@ -27,12 +27,29 @@
|
|
|
|
|
|
#if NET_4_0
|
|
|
|
|
|
-namespace System {
|
|
|
- public delegate TResult Func<TResult> ();
|
|
|
- public delegate TResult Func<T, TResult> (T arg1);
|
|
|
- public delegate TResult Func<T1, T2, TResult> (T1 arg1, T2 arg2);
|
|
|
- public delegate TResult Func<T1, T2, T3, TResult> (T1 arg1, T2 arg2, T3 arg3);
|
|
|
- public delegate TResult Func<T1, T2, T3, T4, TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4);
|
|
|
+using System.Runtime.CompilerServices;
|
|
|
+
|
|
|
+namespace System
|
|
|
+{
|
|
|
+ [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
|
|
|
+ public delegate TResult Func<out TResult> ();
|
|
|
+
|
|
|
+ [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
|
|
|
+ public delegate TResult Func<in T, out TResult> (T arg1);
|
|
|
+
|
|
|
+ [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
|
|
|
+ public delegate TResult Func<in T1, in T2, out TResult> (T1 arg1, T2 arg2);
|
|
|
+
|
|
|
+ [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, out TResult> (T1 arg1, T2 arg2, T3 arg3);
|
|
|
+
|
|
|
+ [TypeForwardedFrom (Consts.AssemblySystemCore_3_5)]
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, in T4, out TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4);
|
|
|
+
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, out TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, out TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, out TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
|
|
|
+ public delegate TResult Func<in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, out TResult> (T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7, T8 arg8);
|
|
|
}
|
|
|
|
|
|
-#endif
|
|
|
+#endif
|