1 instantiation of Releaser
Microsoft.CodeAnalysis.CodeStyle (1)
PooledDelegates.cs (1)
30
return new
Releaser
(obj);
26 references to Releaser
Microsoft.CodeAnalysis.CodeStyle (26)
ConcurrentDictionaryExtensions.cs (1)
37
using
var
_ = PooledDelegates.GetPooledFunction(valueFactory, factoryArgument, out var boundFunction);
PooledDelegates.cs (25)
21
private static
Releaser
GetPooledDelegate<TPooled, TArg, TUnboundDelegate, TBoundDelegate>(TUnboundDelegate unboundDelegate, TArg argument, out TBoundDelegate boundDelegate)
36
/// until the returned <see cref="
Releaser
"/> is disposed.
61
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
62
public static
Releaser
GetPooledAction<TArg>(Action<TArg> unboundAction, TArg argument, out Action boundAction)
68
/// until the returned <see cref="
Releaser
"/> is disposed.
94
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
95
public static
Releaser
GetPooledAction<T1, TArg>(Action<T1, TArg> unboundAction, TArg argument, out Action<T1> boundAction)
101
/// until the returned <see cref="
Releaser
"/> is disposed.
128
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
129
public static
Releaser
GetPooledAction<T1, T2, TArg>(Action<T1, T2, TArg> unboundAction, TArg argument, out Action<T1, T2> boundAction)
135
/// until the returned <see cref="
Releaser
"/> is disposed.
163
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
164
public static
Releaser
GetPooledAction<T1, T2, T3, TArg>(Action<T1, T2, T3, TArg> unboundAction, TArg argument, out Action<T1, T2, T3> boundAction)
170
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
196
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
197
public static
Releaser
GetPooledFunction<TArg, TResult>(Func<TArg, TResult> unboundFunction, TArg argument, out Func<TResult> boundFunction)
203
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
230
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
231
public static
Releaser
GetPooledFunction<T1, TArg, TResult>(Func<T1, TArg, TResult> unboundFunction, TArg argument, out Func<T1, TResult> boundFunction)
237
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
265
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
266
public static
Releaser
GetPooledFunction<T1, T2, TArg, TResult>(Func<T1, T2, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, TResult> boundFunction)
272
/// number of times until the returned <see cref="
Releaser
"/> is disposed.
301
/// <returns>A disposable <see cref="
Releaser
"/> which returns the object to the delegate pool.</returns>
302
public static
Releaser
GetPooledFunction<T1, T2, T3, TArg, TResult>(Func<T1, T2, T3, TArg, TResult> unboundFunction, TArg argument, out Func<T1, T2, T3, TResult> boundFunction)