1 instantiation of Releaser
Microsoft.CodeAnalysis.Workspaces (1)
PooledDelegates.cs (1)
30
return new
Releaser
(obj);
28 references to Releaser
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\Helpers.cs (1)
159
using
var
_ = PooledDelegates.GetPooledFunction(static (filterText, pattern) => filterText.StartsWith(pattern, StringComparison.CurrentCultureIgnoreCase), textTypedSoFar, out Func<string, bool> isPrefixMatch);
Microsoft.CodeAnalysis.Features (1)
Completion\CompletionService.ProviderManager.cs (1)
155
using
var
_ = PooledDelegates.GetPooledFunction(static (p, n) => p.Name == n, item.ProviderName, out Func<CompletionProvider, bool> isNameMatchingProviderPredicate);
Microsoft.CodeAnalysis.Workspaces (26)
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)
Storage\SQLite\v2\SQLitePersistentStorage_Threading.cs (1)
22
using
var
_ = PooledDelegates.GetPooledFunction(func, arg, out var boundFunction);