root/lang/csharp/LINX/trunk/Linx/Lambda.New.cs @ 34861

Revision 34861, 4.2 kB (checked in by takeshik, 5 years ago)

Moved codes from XSpectCommonFramework.

  • Property svn:mime-type set to text/plain; charset=utf-8
  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
Line 
1// -*- mode: csharp; encoding: utf-8; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*-
2// vim:set ft=cs fenc=utf-8 ts=4 sw=4 sts=4 et:
3// $Id$
4/* Linx
5 *   Library that Integrates .NET with eXtremes
6 * Copyright © 2008-2009 Takeshi KIRIYA, XSpect Project <takeshik@users.sf.net>
7 * All rights reserved.
8 *
9 * Permission is hereby granted, free of charge, to any person obtaining a
10 * copy of this software and associated documentation files (the "Software"),
11 * to deal in the Software without restriction, including without limitation
12 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
13 * and/or sell copies of the Software, and to permit persons to whom the
14 * Software is furnished to do so, subject to the following conditions:
15 *
16 * The above copyright notice and this permission notice shall be included in
17 * all copies or substantial portions of the Software.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
24 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
25 * IN THE SOFTWARE.
26 */
27
28using System;
29using XSpect.Extension;
30using Achiral;
31using Achiral.Extension;
32
33namespace XSpect
34{
35    partial class Lambda
36    {
37        public static Action New(Action action)
38        {
39            return action;
40        }
41
42        public static Action<T1> New<T1>(Action<T1> action)
43        {
44            return action;
45        }
46
47        public static Action<T1, T2> New<T1, T2>(Action<T1, T2> action)
48        {
49            return action;
50        }
51
52        public static Action<T1, T2, T3> New<T1, T2, T3>(Action<T1, T2, T3> action)
53        {
54            return action;
55        }
56
57        public static Action<T1, T2, T3, T4> New<T1, T2, T3, T4>(Action<T1, T2, T3, T4> action)
58        {
59            return action;
60        }
61
62        public static Action<T1, T2, T3, T4, T5> New<T1, T2, T3, T4, T5>(Action<T1, T2, T3, T4, T5> action)
63        {
64            return action;
65        }
66
67        public static Action<T1, T2, T3, T4, T5, T6> New<T1, T2, T3, T4, T5, T6>(Action<T1, T2, T3, T4, T5, T6> action)
68        {
69            return action;
70        }
71
72        public static Action<T1, T2, T3, T4, T5, T6, T7> New<T1, T2, T3, T4, T5, T6, T7>(Action<T1, T2, T3, T4, T5, T6, T7> action)
73        {
74            return action;
75        }
76
77        public static Action<T1, T2, T3, T4, T5, T6, T7, T8> New<T1, T2, T3, T4, T5, T6, T7, T8>(Action<T1, T2, T3, T4, T5, T6, T7, T8> action)
78        {
79            return action;
80        }
81
82        public static Func<TResult> New<TResult>(Func<TResult> func)
83        {
84            return func;
85        }
86
87        public static Func<T1, TResult> New<T1, TResult>(Func<T1, TResult> func)
88        {
89            return func;
90        }
91
92        public static Func<T1, T2, TResult> New<T1, T2, TResult>(Func<T1, T2, TResult> func)
93        {
94            return func;
95        }
96
97        public static Func<T1, T2, T3, TResult> New<T1, T2, T3, TResult>(Func<T1, T2, T3, TResult> func)
98        {
99            return func;
100        }
101
102        public static Func<T1, T2, T3, T4, TResult> New<T1, T2, T3, T4, TResult>(Func<T1, T2, T3, T4, TResult> func)
103        {
104            return func;
105        }
106
107        public static Func<T1, T2, T3, T4, T5, TResult> New<T1, T2, T3, T4, T5, TResult>(Func<T1, T2, T3, T4, T5, TResult> func)
108        {
109            return func;
110        }
111
112        public static Func<T1, T2, T3, T4, T5, T6, TResult> New<T1, T2, T3, T4, T5, T6, TResult>(Func<T1, T2, T3, T4, T5, T6, TResult> func)
113        {
114            return func;
115        }
116
117        public static Func<T1, T2, T3, T4, T5, T6, T7, TResult> New<T1, T2, T3, T4, T5, T6, T7, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, TResult> func)
118        {
119            return func;
120        }
121
122        public static Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> New<T1, T2, T3, T4, T5, T6, T7, T8, TResult>(Func<T1, T2, T3, T4, T5, T6, T7, T8, TResult> func)
123        {
124            return func;
125        }
126    }
127}
Note: See TracBrowser for help on using the browser.