258 instantiations of ConditionalWeakTable
GenerateDocumentationAndConfigFiles (13)
Metrics (5)
Metrics.Legacy (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.CodeAnalysis (6)
Microsoft.CodeAnalysis.Analyzers (13)
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Framework\DataFlow\LValueFlowCapturesProvider.cs (1)
24new();
Microsoft.CodeAnalysis.BannedApiAnalyzers (13)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.Text (3)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (13)
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (13)
Microsoft.CodeAnalysis.PublicApiAnalyzers (5)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Microsoft.CodeAnalysis.ResxSourceGenerator (5)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces (39)
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.AI.Abstractions (3)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (6)
Microsoft.VisualStudio.LanguageServices (3)
PresentationCore (3)
PresentationFramework (8)
Roslyn.Diagnostics.Analyzers (13)
Roslyn.Diagnostics.CSharp.Analyzers (2)
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
System.ComponentModel.Composition (2)
System.Configuration.ConfigurationManager (2)
System.Diagnostics.StackTrace (1)
System.Linq.Expressions (1)
System.Net.Sockets (1)
System.Private.CoreLib (4)
System.Private.DataContractSerialization (2)
System.Private.Xml (2)
System.Reflection.DispatchProxy (1)
System.Runtime.InteropServices (1)
System.Text.Json (1)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (1)
Test.Utilities (5)
Text.Analyzers (13)
434 references to ConditionalWeakTable
Aspire.Hosting.Analyzers (1)
GenerateDocumentationAndConfigFiles (20)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Metrics (12)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Metrics.Legacy (12)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.AspNetCore.App.Analyzers (1)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.CodeAnalysis (15)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.Analyzers (20)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.AnalyzerUtilities (13)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.BannedApiAnalyzers (20)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.CodeStyle (9)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.CodeStyle.Fixes (10)
Microsoft.CodeAnalysis.Collections.Package (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.Workspaces (5)
Microsoft.CodeAnalysis.Debugging.Package (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.EditorFeatures (5)
Microsoft.CodeAnalysis.EditorFeatures.Text (3)
Microsoft.CodeAnalysis.Extensions.Package (6)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (14)
Microsoft.CodeAnalysis.InteractiveHost (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (20)
Microsoft.CodeAnalysis.PooledObjects.Package (5)
PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.PublicApiAnalyzers (12)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.Remote.ServiceHub (3)
Microsoft.CodeAnalysis.ResxSourceGenerator (12)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.Threading.Package (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.Workspaces (48)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (5)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Microsoft.DotNet.SwaggerGenerator.CodeGenerator (2)
Microsoft.Extensions.AI.Abstractions (5)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.ObjectPool (1)
Microsoft.Extensions.Validation.ValidationsGenerator (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (5)
Microsoft.VisualStudio.LanguageServices (3)
mscorlib (1)
netstandard (1)
PresentationCore (5)
PresentationFramework (9)
Roslyn.Diagnostics.Analyzers (20)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Roslyn.Diagnostics.CSharp.Analyzers (2)
System.ComponentModel.Composition (4)
System.Configuration.ConfigurationManager (2)
System.Diagnostics.StackTrace (1)
System.Dynamic.Runtime (1)
System.Linq.Expressions (1)
System.Net.Sockets (1)
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Runtime\CompilerServices\ConditionalWeakTable.cs (10)
207/// <returns>The value bound to <typeparamref name="TKey"/> in the current <see cref="ConditionalWeakTable{TKey, TValue}"/> instance, after the method completes.</returns>
226/// <returns>The value bound to <typeparamref name="TKey"/> in the current <see cref="ConditionalWeakTable{TKey, TValue}"/> instance, after the method completes.</returns>
258/// <returns>The value bound to <typeparamref name="TKey"/> in the current <see cref="ConditionalWeakTable{TKey, TValue}"/> instance, after the method completes.</returns>
392private ConditionalWeakTable<TKey, TValue>? _table; // parent table, set to null when disposed
397public Enumerator(ConditionalWeakTable<TKey, TValue> table)
423ConditionalWeakTable<TKey, TValue>? table = Interlocked.Exchange(ref _table, null);
444ConditionalWeakTable<TKey, TValue>? table = _table;
558private readonly ConditionalWeakTable<TKey, TValue> _parent; // the ConditionalWeakTable with which this container is associated
566internal Container(ConditionalWeakTable<TKey, TValue> parent)
586private Container(ConditionalWeakTable<TKey, TValue> parent, int[] buckets, Entry[] entries, int firstFreeEntry)
System.Private.DataContractSerialization (2)
System.Private.Xml (2)
System.Reflection.DispatchProxy (1)
System.Runtime (1)
System.Runtime.InteropServices (1)
System.Text.Json (1)
System.Threading.Tasks.Dataflow (1)
System.Transactions.Local (1)
System.Windows.Forms (4)
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (2)
Test.Utilities (12)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()
Text.Analyzers (20)
src\Dependencies\PooledObjects\PooledDelegates.cs (5)
205/// except typed such that it can be used to create a pooled <see cref="ConditionalWeakTable{TKey,
210out ConditionalWeakTable<TKey, TValue>.CreateValueCallback boundFunction) where TKey : class where TValue : class
213return GetPooledDelegate<CreateValueCallbackWithBoundArgument<TKey, TArg, TValue>, TArg, Func<TKey, TArg, TValue>, ConditionalWeakTable<TKey, TValue>.CreateValueCallback>(unboundFunction, argument, out boundFunction);
423ConditionalWeakTable<TKey, TValue>.CreateValueCallback>
427protected override ConditionalWeakTable<TKey, TValue>.CreateValueCallback Bind()