1 instantiation of Releaser
Microsoft.CodeAnalysis.Workspaces (1)
PooledDelegates.cs (1)
30return new Releaser(obj);
28 references to Releaser
Microsoft.CodeAnalysis.EditorFeatures (1)
IntelliSense\AsyncCompletion\Helpers.cs (1)
159using 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)
155using var _ = PooledDelegates.GetPooledFunction(static (p, n) => p.Name == n, item.ProviderName, out Func<CompletionProvider, bool> isNameMatchingProviderPredicate);
Microsoft.CodeAnalysis.Workspaces (26)
PooledDelegates.cs (25)
21private 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> 62public 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> 95public 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> 129public 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> 164public 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> 197public 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> 231public 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> 266public 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> 302public 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)
22using var _ = PooledDelegates.GetPooledFunction(func, arg, out var boundFunction);