Skip to content

Commit 7980562

Browse files
committed
Code cleanup
1 parent 28cc464 commit 7980562

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

src/DotNext/DelegateHelpers.Bind.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ private static unsafe TOutput Bind<TInput, TOutput, T>(TInput d, T obj, delegate
2424
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
2525
public static unsafe Action Bind<T>(this Action<T> action, T obj)
2626
where T : class
27-
=> Bind<Action<T>, Action, T>(action, obj, &Closure<T>.Create);
27+
=> Bind(action, obj, &Closure<T>.Create);
2828

2929
/// <summary>
3030
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -37,7 +37,7 @@ public static unsafe Action Bind<T>(this Action<T> action, T obj)
3737
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
3838
public static unsafe Func<TResult> Bind<T, TResult>(this Func<T, TResult> func, T obj)
3939
where T : class
40-
=> Bind<Func<T, TResult>, Func<TResult>, T>(func, obj, &Closure<T>.Create);
40+
=> Bind(func, obj, &Closure<T>.Create);
4141

4242
/// <summary>
4343
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -51,7 +51,7 @@ public static unsafe Func<TResult> Bind<T, TResult>(this Func<T, TResult> func,
5151
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
5252
public static unsafe Func<T2, TResult> Bind<T1, T2, TResult>(this Func<T1, T2, TResult> func, T1 obj)
5353
where T1 : class
54-
=> Bind<Func<T1, T2, TResult>, Func<T2, TResult>, T1>(func, obj, &Closure<T1>.Create);
54+
=> Bind(func, obj, &Closure<T1>.Create);
5555

5656
/// <summary>
5757
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -64,7 +64,7 @@ public static unsafe Func<T2, TResult> Bind<T1, T2, TResult>(this Func<T1, T2, T
6464
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
6565
public static unsafe Action<T2> Bind<T1, T2>(this Action<T1, T2> action, T1 obj)
6666
where T1 : class
67-
=> Bind<Action<T1, T2>, Action<T2>, T1>(action, obj, &Closure<T1>.Create);
67+
=> Bind(action, obj, &Closure<T1>.Create);
6868

6969
/// <summary>
7070
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -79,7 +79,7 @@ public static unsafe Action<T2> Bind<T1, T2>(this Action<T1, T2> action, T1 obj)
7979
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
8080
public static unsafe Func<T2, T3, TResult> Bind<T1, T2, T3, TResult>(this Func<T1, T2, T3, TResult> func, T1 obj)
8181
where T1 : class
82-
=> Bind<Func<T1, T2, T3, TResult>, Func<T2, T3, TResult>, T1>(func, obj, &Closure<T1>.Create);
82+
=> Bind(func, obj, &Closure<T1>.Create);
8383

8484
/// <summary>
8585
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -93,7 +93,7 @@ public static unsafe Func<T2, T3, TResult> Bind<T1, T2, T3, TResult>(this Func<T
9393
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
9494
public static unsafe Action<T2, T3> Bind<T1, T2, T3>(this Action<T1, T2, T3> action, T1 obj)
9595
where T1 : class
96-
=> Bind<Action<T1, T2, T3>, Action<T2, T3>, T1>(action, obj, &Closure<T1>.Create);
96+
=> Bind(action, obj, &Closure<T1>.Create);
9797

9898
/// <summary>
9999
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -109,7 +109,7 @@ public static unsafe Action<T2, T3> Bind<T1, T2, T3>(this Action<T1, T2, T3> act
109109
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
110110
public static unsafe Func<T2, T3, T4, TResult> Bind<T1, T2, T3, T4, TResult>(this Func<T1, T2, T3, T4, TResult> func, T1 obj)
111111
where T1 : class
112-
=> Bind<Func<T1, T2, T3, T4, TResult>, Func<T2, T3, T4, TResult>, T1>(func, obj, &Closure<T1>.Create);
112+
=> Bind(func, obj, &Closure<T1>.Create);
113113

114114
/// <summary>
115115
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -124,7 +124,7 @@ public static unsafe Func<T2, T3, T4, TResult> Bind<T1, T2, T3, T4, TResult>(thi
124124
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
125125
public static unsafe Action<T2, T3, T4> Bind<T1, T2, T3, T4>(this Action<T1, T2, T3, T4> action, T1 obj)
126126
where T1 : class
127-
=> Bind<Action<T1, T2, T3, T4>, Action<T2, T3, T4>, T1>(action, obj, &Closure<T1>.Create);
127+
=> Bind(action, obj, &Closure<T1>.Create);
128128

129129
/// <summary>
130130
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -141,7 +141,7 @@ public static unsafe Action<T2, T3, T4> Bind<T1, T2, T3, T4>(this Action<T1, T2,
141141
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
142142
public static unsafe Func<T2, T3, T4, T5, TResult> Bind<T1, T2, T3, T4, T5, TResult>(this Func<T1, T2, T3, T4, T5, TResult> func, T1 obj)
143143
where T1 : class
144-
=> Bind<Func<T1, T2, T3, T4, T5, TResult>, Func<T2, T3, T4, T5, TResult>, T1>(func, obj, &Closure<T1>.Create);
144+
=> Bind(func, obj, &Closure<T1>.Create);
145145

146146
/// <summary>
147147
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -157,7 +157,7 @@ public static unsafe Func<T2, T3, T4, T5, TResult> Bind<T1, T2, T3, T4, T5, TRes
157157
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
158158
public static unsafe Action<T2, T3, T4, T5> Bind<T1, T2, T3, T4, T5>(this Action<T1, T2, T3, T4, T5> action, T1 obj)
159159
where T1 : class
160-
=> Bind<Action<T1, T2, T3, T4, T5>, Action<T2, T3, T4, T5>, T1>(action, obj, &Closure<T1>.Create);
160+
=> Bind(action, obj, &Closure<T1>.Create);
161161

162162
/// <summary>
163163
/// Produces a delegate whose first parameter is implicitly bound to the given object.
@@ -169,5 +169,5 @@ public static unsafe Action<T2, T3, T4, T5> Bind<T1, T2, T3, T4, T5>(this Action
169169
/// <exception cref="ArgumentNullException"><paramref name="obj"/> is <see langword="null"/>.</exception>
170170
public static unsafe Func<bool> Bind<T>(this Predicate<T> predicate, T obj)
171171
where T : class
172-
=> Bind<Predicate<T>, Func<bool>, T>(predicate, obj, &Closure<T>.Create);
172+
=> Bind(predicate, obj, &Closure<T>.Create);
173173
}

0 commit comments

Comments
 (0)