6 types derived from Assembly
Aspire.Dashboard.Tests (1)
System.Private.CoreLib (3)
System.Reflection.Context (1)
System.Reflection.MetadataLoadContext (1)
2144 references to Assembly
aspire (5)
Aspire.Cli.Tests (3)
Aspire.Confluent.Kafka.Tests (1)
Aspire.Dashboard (2)
Aspire.Dashboard.Tests (4)
Aspire.Hosting (15)
Aspire.Hosting.Azure.Kusto.Tests (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.CodeGeneration.Go (2)
Aspire.Hosting.CodeGeneration.Go.Tests (9)
Aspire.Hosting.CodeGeneration.Java (2)
Aspire.Hosting.CodeGeneration.Java.Tests (9)
Aspire.Hosting.CodeGeneration.Python (2)
Aspire.Hosting.CodeGeneration.Python.Tests (9)
Aspire.Hosting.CodeGeneration.Rust (2)
Aspire.Hosting.CodeGeneration.Rust.Tests (9)
Aspire.Hosting.CodeGeneration.TypeScript (2)
Aspire.Hosting.CodeGeneration.TypeScript.Tests (16)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.DevTunnels (1)
Aspire.Hosting.Docker.Tests (1)
Aspire.Hosting.Foundry.Tests (1)
Aspire.Hosting.Kubernetes.Tests (1)
Aspire.Hosting.Maui.Tests (1)
Aspire.Hosting.Python.Tests (1)
Aspire.Hosting.RemoteHost (27)
Aspire.Hosting.RemoteHost.Tests (20)
Aspire.Hosting.Testing (15)
Aspire.Hosting.Testing.Tests (2)
Aspire.Hosting.Tests (2)
Aspire.Hosting.Yarp.Tests (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (1)
Aspire.TypeSystem (1)
CodeStyleConfigFileGenerator (4)
crossgen2 (1)
dotnet-dev-certs (2)
dotnet-format (14)
dotnet-Microsoft.XmlSerializer.Generator (6)
dotnet-suggest (1)
dotnet-svcutil.xmlserializer (30)
dotnet-svcutil.xmlserializer.IntegrationTests (2)
dotnet-svcutil-lib (54)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
dotnet-watch (1)
GenerateDocumentationAndConfigFiles (12)
ilc (1)
ILCompiler.Compiler (17)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (16)
73/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item>
74/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item>
75/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
300/// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
301/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
302/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
308/// <item><see cref="System.Reflection.Assembly.GetType(string)"/></item>
309/// <item><see cref="System.Reflection.Assembly.GetType(string, bool)"/></item>
310/// <item><see cref="System.Reflection.Assembly.GetType(string, bool, bool)"/></item>
315/// <see cref="System.Reflection.Assembly.Location"/>
319/// <see cref="System.Reflection.Assembly.GetFile(string)"/>
323/// <see cref="System.Reflection.Assembly.GetFiles()"/>
324/// <see cref="System.Reflection.Assembly.GetFiles(bool)"/>
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRun\CompilerIdentifierNode.cs (1)
28return Assembly
illink (25)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (16)
73/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item>
74/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item>
75/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
300/// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
301/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
302/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
308/// <item><see cref="System.Reflection.Assembly.GetType(string)"/></item>
309/// <item><see cref="System.Reflection.Assembly.GetType(string, bool)"/></item>
310/// <item><see cref="System.Reflection.Assembly.GetType(string, bool, bool)"/></item>
315/// <see cref="System.Reflection.Assembly.Location"/>
319/// <see cref="System.Reflection.Assembly.GetFile(string)"/>
323/// <see cref="System.Reflection.Assembly.GetFiles()"/>
324/// <see cref="System.Reflection.Assembly.GetFiles(bool)"/>
ILLink.RoslynAnalyzer (16)
src\runtime\src\tools\illink\src\ILLink.Shared\TrimAnalysis\IntrinsicId.cs (16)
73/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?)"/></item>
74/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool)"/></item>
75/// <item><see cref="System.Type.GetType(string, System.Func{System.Reflection.AssemblyName, System.Reflection.Assembly?}?, System.Func{System.Reflection.Assembly?, string, bool, System.Type?}?, bool, bool)"/></item>
300/// <item><see cref="System.Reflection.Assembly.CreateInstance(string)"/></item>
301/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool)"/></item>
302/// <item><see cref="System.Reflection.Assembly.CreateInstance(string, bool, System.Reflection.BindingFlags, System.Reflection.Binder, object[], System.Globalization.CultureInfo, object[])"/></item>
308/// <item><see cref="System.Reflection.Assembly.GetType(string)"/></item>
309/// <item><see cref="System.Reflection.Assembly.GetType(string, bool)"/></item>
310/// <item><see cref="System.Reflection.Assembly.GetType(string, bool, bool)"/></item>
315/// <see cref="System.Reflection.Assembly.Location"/>
319/// <see cref="System.Reflection.Assembly.GetFile(string)"/>
323/// <see cref="System.Reflection.Assembly.GetFiles()"/>
324/// <see cref="System.Reflection.Assembly.GetFiles(bool)"/>
ILLink.Tasks (1)
Microsoft.Analyzers.Extra.Tests (60)
Microsoft.Analyzers.Local.Tests (28)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (16)
80public static IEnumerable<System.Reflection.Assembly> References => new[]
82Assembly.GetAssembly(typeof(ObsoleteAttribute))!,
83Assembly.GetAssembly(typeof(EditorBrowsableAttribute))!,
84Assembly.GetAssembly(typeof(Debugger))!,
85Assembly.GetAssembly(typeof(IReadOnlyList<>))!,
86Assembly.GetAssembly(typeof(ArgumentOutOfRangeException))!,
87Assembly.GetAssembly(typeof(IServiceProvider))!,
88Assembly.GetAssembly(typeof(RequiredAttribute))!,
89Assembly.GetAssembly(typeof(OptionsBuilder<>))!,
90Assembly.GetAssembly(typeof(IConfigurationSection))!,
91Assembly.GetAssembly(typeof(HttpRequestMessage))!,
92Assembly.GetAssembly(typeof(IDistributedCache))!,
93Assembly.GetAssembly(typeof(Microsoft.Extensions.ObjectPool.ObjectPool))!,
94Assembly.GetAssembly(typeof(IBufferWriter<>))!,
95Assembly.GetAssembly(typeof(ITagCollector))!,
96Assembly.GetAssembly(typeof(Microsoft.Extensions.Logging.ILogger))!,
Microsoft.Arcade.Common (1)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.App.Analyzers (2)
Microsoft.AspNetCore.Components (13)
Microsoft.AspNetCore.Components.Endpoints (16)
Microsoft.AspNetCore.Components.Server (8)
Microsoft.AspNetCore.Components.WebView.Maui (1)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.Hosting (13)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Mvc (3)
Microsoft.AspNetCore.Mvc.Core (44)
Microsoft.AspNetCore.Mvc.Localization (1)
Microsoft.AspNetCore.Mvc.Razor (10)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Razor.Runtime (8)
Microsoft.AspNetCore.SignalR.Core (2)
Microsoft.Build (25)
Microsoft.Build.Framework (39)
Loader\CoreCLRAssemblyLoader.cs (16)
24private readonly Dictionary<string, Assembly> _pathsToAssemblies = new Dictionary<string, Assembly>(StringComparer.OrdinalIgnoreCase);
25private readonly Dictionary<string, Assembly> _namesToAssemblies = new Dictionary<string, Assembly>();
46public Assembly LoadFromPath(string fullPath)
70private Assembly LoadUsingLegacyDefaultContext(string fullPath)
80Assembly assembly;
90private Assembly LoadUsingPluginContext(string fullPath)
94Assembly assembly;
113private Assembly TryGetWellKnownAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
124string[] searchPaths = [Assembly.GetExecutingAssembly().Location];
128private Assembly TryResolveAssembly(AssemblyLoadContext context, AssemblyName assemblyName)
132Assembly assembly = TryGetWellKnownAssembly(context, assemblyName);
148private Assembly TryResolveAssemblyFromPaths(AssemblyLoadContext context, AssemblyName assemblyName, IEnumerable<string> searchPaths)
187private Assembly LoadAndCache(AssemblyLoadContext context, string fullPath)
189var assembly = context.LoadFromAssemblyPath(fullPath);
Microsoft.Build.Tasks.CodeAnalysis (4)
Microsoft.Build.Tasks.Core (13)
Microsoft.CodeAnalysis (38)
DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (7)
73public bool IsHostAssembly(Assembly assembly)
81private partial Assembly Load(AssemblyName assemblyName, string resolvedPath)
186protected override Assembly? Load(AssemblyName assemblyName)
190var assembly = resolver.Resolve(_loader, assemblyName, this, Directory);
232public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
250public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
270public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
Microsoft.CodeAnalysis.Analyzers (8)
Microsoft.CodeAnalysis.AnalyzerUtilities (2)
Microsoft.CodeAnalysis.CodeStyle (3)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.Features (1)
Microsoft.CodeAnalysis.Extensions.Package (2)
Microsoft.CodeAnalysis.Features (9)
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
Microsoft.CodeAnalysis.Scripting (34)
Hosting\AssemblyLoader\InteractiveAssemblyLoader.cs (17)
45private readonly Dictionary<Assembly, LoadedAssembly> _assembliesLoadedFromLocation;
73private readonly struct LoadedAssemblyInfo(Assembly assembly, AssemblyIdentity identity, string? location)
75public readonly Assembly Assembly = assembly;
89_assembliesLoadedFromLocation = new Dictionary<Assembly, LoadedAssembly>();
101internal Assembly LoadAssemblyFromStream(Stream peStream, Stream pdbStream)
103Assembly assembly = _runtimeAssemblyLoader.LoadFromStream(peStream, pdbStream);
181public void RegisterDependency(Assembly dependency)
194private void RegisterLoadedAssemblySimpleNameNoLock(Assembly assembly, string? location)
222internal Assembly? ResolveAssembly(string assemblyDisplayName, Assembly? requestingAssembly)
246internal Assembly? ResolveAssembly(AssemblyIdentity identity, string? loadDirectory)
251Assembly? assembly;
342private Assembly? TryGetAssemblyLoadedFromPath(AssemblyIdentity identity, string directory)
380private Assembly? GetOrLoadKnownAssembly(AssemblyIdentity identity)
382Assembly? assembly = null;
450private static Assembly? FindHighestVersionOrFirstMatchingIdentity(AssemblyIdentity identity, IEnumerable<LoadedAssemblyInfo> infos)
452Assembly? candidate = null;
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
Microsoft.CodeAnalysis.Workspaces (35)
src\roslyn\src\Compilers\Core\Portable\DiagnosticAnalyzer\AnalyzerAssemblyLoader.Core.cs (7)
73public bool IsHostAssembly(Assembly assembly)
81private partial Assembly Load(AssemblyName assemblyName, string resolvedPath)
186protected override Assembly? Load(AssemblyName assemblyName)
190var assembly = resolver.Resolve(_loader, assemblyName, this, Directory);
232public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
250public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
270public Assembly? Resolve(AnalyzerAssemblyLoader loader, AssemblyName assemblyName, AssemblyLoadContext directoryContext, string directory)
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.Contracts (2)
Microsoft.CSharp (13)
Microsoft.Data.Analysis.Tests (1)
Microsoft.DotNet.ApiCompat.Task (5)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.GenFacades (6)
Microsoft.DotNet.HotReload.WebAssembly.Browser (22)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (12)
27private delegate void ApplyUpdateDelegate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta);
32private readonly ConcurrentDictionary<Assembly, Assembly> _appliedAssemblies = new();
38private Func<AssemblyLoadContext, AssemblyName, Assembly?>? _assemblyResolvingHandlerToInstall;
39private Func<AssemblyLoadContext, AssemblyName, Assembly?>? _installedAssemblyResolvingHandler;
45Func<AssemblyLoadContext, AssemblyName, Assembly?>? assemblyResolvingHandler,
74var applyUpdateMethod = metadataUpdater.GetMethod(ApplyUpdateMethodName, BindingFlags.Public | BindingFlags.Static, binder: null, [typeof(Assembly), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>)], modifiers: null);
106var loadedAssembly = eventArgs.LoadedAssembly;
143foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
225var assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(assembly => TryGetModuleId(assembly) is Guid moduleId && moduleId == update.ModuleId);
253private void ApplyDeltas(Assembly assembly, IReadOnlyList<RuntimeManagedCodeUpdate> updates)
272private static Guid? TryGetModuleId(Assembly loadedAssembly)
Microsoft.DotNet.NativeWrapper (2)
Microsoft.Extensions.Configuration.UserSecrets (3)
Microsoft.Extensions.DependencyModel (10)
Microsoft.Extensions.DotNetDeltaApplier (22)
src\sdk\src\Dotnet.Watch\HotReloadAgent\HotReloadAgent.cs (12)
27private delegate void ApplyUpdateDelegate(Assembly assembly, ReadOnlySpan<byte> metadataDelta, ReadOnlySpan<byte> ilDelta, ReadOnlySpan<byte> pdbDelta);
32private readonly ConcurrentDictionary<Assembly, Assembly> _appliedAssemblies = new();
38private Func<AssemblyLoadContext, AssemblyName, Assembly?>? _assemblyResolvingHandlerToInstall;
39private Func<AssemblyLoadContext, AssemblyName, Assembly?>? _installedAssemblyResolvingHandler;
45Func<AssemblyLoadContext, AssemblyName, Assembly?>? assemblyResolvingHandler,
74var applyUpdateMethod = metadataUpdater.GetMethod(ApplyUpdateMethodName, BindingFlags.Public | BindingFlags.Static, binder: null, [typeof(Assembly), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>), typeof(ReadOnlySpan<byte>)], modifiers: null);
106var loadedAssembly = eventArgs.LoadedAssembly;
143foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
225var assembly = AppDomain.CurrentDomain.GetAssemblies().FirstOrDefault(assembly => TryGetModuleId(assembly) is Guid moduleId && moduleId == update.ModuleId);
253private void ApplyDeltas(Assembly assembly, IReadOnlyList<RuntimeManagedCodeUpdate> updates)
272private static Guid? TryGetModuleId(Assembly loadedAssembly)
Microsoft.Extensions.FileProviders.Embedded (18)
Microsoft.Extensions.Hosting (3)
Microsoft.Extensions.Localization (21)
Microsoft.Extensions.Localization.Abstractions (1)
Microsoft.Extensions.Logging.Abstractions (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (13)
Microsoft.Gen.ComplianceReports.Unit.Tests (15)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.ContextualOptions.Unit.Tests (13)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.Logging.Unit.Tests (44)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.MetadataExtractor.Unit.Tests (20)
Microsoft.Gen.Metrics.Unit.Tests (24)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Gen.MetricsReports.Unit.Tests (17)
test\Generators\Shared\RoslynTestUtils.cs (12)
41public static Project CreateTestProject(IEnumerable<Assembly>? references, bool includeBaseReferences = true)
53IEnumerable<Assembly>? references,
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
71foreach (var r in references)
246IEnumerable<Assembly>? references,
260IEnumerable<Assembly>? references,
290IEnumerable<Assembly>? references,
303IEnumerable<Assembly>? references,
357IEnumerable<Assembly>? references,
380IEnumerable<Assembly>? references,
394IEnumerable<Assembly>? references,
437IEnumerable<Assembly>? references,
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (6)
Microsoft.Maui (11)
Microsoft.Maui.Controls (36)
ResourceDictionary.cs (8)
28 internal static Action<ResourceDictionary, Uri, string, Assembly, System.Xml.IXmlLineInfo> s_setAndLoadSource;
57 public void SetAndLoadSource(Uri value, string resourcePath, Assembly assembly, global::System.Xml.IXmlLineInfo lineInfo)
419 internal static Uri GetUriWithExplicitAssembly(string value, Assembly defaultAssembly)
421 (value, var assembly) = SplitUriAndAssembly(value, defaultAssembly);
425 internal static ValueTuple<string, Assembly> SplitUriAndAssembly(string value, Assembly defaultAssembly)
430 return (parts[0], Assembly.Load(parts[1]));
436 internal static Uri CombineUriAndAssembly(string value, Assembly assembly)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.Compatibility (7)
Microsoft.Maui.Controls.Xaml (23)
ResourceDictionaryHelpers.cs (4)
20 public static void LoadFromSource(ResourceDictionary rd, Uri source, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
29 (value, var assembly) = ResourceDictionary.RDSourceTypeConverter.SplitUriAndAssembly(value, rootType.Assembly);
39 internal static void SetAndLoadSource(ResourceDictionary rd, Uri value, string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
49 static ResourceDictionary CreateFromResource(string resourcePath, Assembly assembly, IXmlLineInfo lineInfo)
XamlLoader.cs (6)
58 public static void Load(object view, string xaml, Assembly rootAssembly) => Load(view, xaml, rootAssembly, false);
60 public static void Load(object view, string xaml, Assembly rootAssembly, bool useDesignProperties)
226 var assembly = type.Assembly;
262 var assembly = type.Assembly;
317 static bool ResourceMatchesFilename(Assembly assembly, string resource, string filename)
340 static string ReadResourceAsXaml(Type type, Assembly assembly, string likelyTargetName, bool validate = false)
Microsoft.ML.AutoML (2)
Microsoft.ML.Benchmarks.Tests (1)
Microsoft.ML.CodeAnalyzer.Tests (2)
Microsoft.ML.Core (14)
Microsoft.ML.CpuMath.UnitTests (1)
Microsoft.ML.Data (2)
Microsoft.ML.GenAI.Core (2)
Microsoft.ML.OnnxConverter (2)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.Samples (1)
Microsoft.ML.Samples.GPU (1)
Microsoft.ML.Tokenizers.Tests (1)
Microsoft.ML.TorchSharp (1)
Microsoft.ML.Transforms (6)
Microsoft.NET.Sdk.Publish.Tasks (1)
Microsoft.Private.Windows.Core (4)
Microsoft.TemplateEngine.Edge (12)
Microsoft.TemplateEngine.IDE (1)
Microsoft.TestPlatform.AdapterUtilities (5)
Microsoft.TestPlatform.CrossPlatEngine (4)
Microsoft.TestPlatform.Extensions.BlameDataCollector (1)
Microsoft.TestPlatform.PlatformAbstractions (7)
Microsoft.TestPlatform.TestHostRuntimeProvider (1)
Microsoft.TestPlatform.Utilities (1)
Microsoft.VisualBasic.Core (3)
Microsoft.VisualBasic.Forms (9)
Microsoft.VisualStudio.TestPlatform.Common (29)
Microsoft.VisualStudio.TestPlatform.ObjectModel (4)
Microsoft.Web.XmlTransform (6)
Mono.Cecil (3)
MSBuild (11)
mscorlib (1)
netstandard (1)
NuGet.Common (1)
NuGet.Packaging (1)
NuGet.Protocol (3)
PresentationBuildTasks (53)
PresentationCore (30)
PresentationFramework (120)
Roslyn.Diagnostics.Analyzers (8)
rzc (19)
DefaultExtensionAssemblyLoader.cs (13)
19private readonly Dictionary<string, (Assembly assembly, AssemblyIdentity identity)> _loadedByPath;
20private readonly Dictionary<AssemblyIdentity, Assembly> _loadedByIdentity;
30_loadedByPath = new Dictionary<string, (Assembly assembly, AssemblyIdentity identity)>(StringComparer.OrdinalIgnoreCase);
31_loadedByIdentity = new Dictionary<AssemblyIdentity, Assembly>();
68public override Assembly Load(string assemblyName)
78if (_loadedByIdentity.TryGetValue(identity, out var assembly))
105public override Assembly LoadFromPath(string filePath)
123private Assembly LoadFromPathUnsafe(string filePath, AssemblyIdentity identity)
135if (identity != null && _loadedByIdentity.TryGetValue(identity, out var assembly))
149if (_loadedByIdentity.TryGetValue(identity, out var duplicate))
190protected virtual Assembly LoadFromPathUnsafeCore(string filePath)
224protected override Assembly Load(AssemblyName assemblyName)
227var assembly = _loader.Load(assemblyName.ToString());
System.CodeDom (3)
System.CommandLine (4)
System.ComponentModel.Composition (23)
System.ComponentModel.Composition.Registration (2)
System.ComponentModel.TypeConverter (14)
System.Composition.TypedParts (4)
System.Configuration.ConfigurationManager (6)
System.Data.Odbc (2)
System.Data.OleDb (3)
System.Diagnostics.StackTrace (5)
System\Diagnostics\StackTraceSymbols.cs (5)
15private readonly ConditionalWeakTable<Assembly, MetadataReaderProvider?> _metadataCache;
22_metadataCache = new ConditionalWeakTable<Assembly, MetadataReaderProvider?>();
30foreach ((Assembly _, MetadataReaderProvider? provider) in _metadataCache)
53internal void GetSourceLineInfo(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize, bool isFileLayout,
117private MetadataReader? TryGetReader(Assembly assembly, string assemblyPath, IntPtr loadedPeAddress, int loadedPeSize, bool isFileLayout, IntPtr inMemoryPdbAddress, int inMemoryPdbSize)
System.Diagnostics.TraceSource (2)
System.DirectoryServices.Protocols (1)
System.Drawing.Common (1)
System.IO.IsolatedStorage (2)
System.Management (5)
System.Private.CoreLib (191)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Reflection\Assembly.cs (24)
19private static readonly Dictionary<string, Assembly> s_loadfile = new Dictionary<string, Assembly>();
154public virtual Assembly GetSatelliteAssembly(CultureInfo culture) { throw NotImplemented.ByDesign; }
155public virtual Assembly GetSatelliteAssembly(CultureInfo culture, Version? version) { throw NotImplemented.ByDesign; }
184public static bool operator ==(Assembly? left, Assembly? right)
202public static bool operator !=(Assembly? left, Assembly? right) => !(left == right);
206public static Assembly? GetAssembly(Type type)
228public static void SetEntryAssembly(Assembly? assembly)
242public static Assembly? GetEntryAssembly()
245return s_overriddenEntryAssembly as Assembly;
251public static Assembly Load(byte[] rawAssembly) => Load(rawAssembly, rawSymbolStore: null);
257public static Assembly Load(byte[] rawAssembly, byte[]? rawSymbolStore)
272public static Assembly LoadFile(string path)
283Assembly? result;
305private static Assembly? LoadFromResolveHandler(object? sender, ResolveEventArgs args)
307Assembly? requestingAssembly = args.RequestingAssembly;
375public static Assembly LoadFrom(string assemblyFile)
408public static Assembly LoadFrom(string assemblyFile, byte[]? hashValue, AssemblyHashAlgorithm hashAlgorithm)
414public static Assembly UnsafeLoadFrom(string assemblyFile) => LoadFrom(assemblyFile);
423public static Assembly ReflectionOnlyLoad(byte[] rawAssembly) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
426public static Assembly ReflectionOnlyLoad(string assemblyString) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
429public static Assembly ReflectionOnlyLoadFrom(string assemblyFile) { throw new PlatformNotSupportedException(SR.PlatformNotSupported_ReflectionOnly); }
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\InteropServices\NativeLibrary.cs (7)
23Assembly assembly,
84public static IntPtr Load(string libraryName, Assembly assembly, DllImportSearchPath? searchPath)
119public static bool TryLoad(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, out IntPtr handle)
187private static ConditionalWeakTable<Assembly, DllImportResolver>? s_nativeDllResolveMap;
201public static void SetDllImportResolver(Assembly assembly, DllImportResolver resolver)
212new ConditionalWeakTable<Assembly, DllImportResolver>(), null);
231internal static IntPtr LoadLibraryCallbackStub(string libraryName, Assembly assembly,
src\runtime\src\libraries\System.Private.CoreLib\src\System\Runtime\Loader\AssemblyLoadContext.cs (16)
55private event Func<Assembly, string, IntPtr>? _resolvingUnmanagedDll;
57private event Func<AssemblyLoadContext, AssemblyName, Assembly>? _resolving;
168public IEnumerable<Assembly> Assemblies
172foreach (Assembly a in GetLoadedAssemblies())
190public event Func<Assembly, string, IntPtr>? ResolvingUnmanagedDll
211public event Func<AssemblyLoadContext, AssemblyName, Assembly?>? Resolving
315protected virtual Assembly? Load(AssemblyName assemblyName)
335public Assembly LoadFromAssemblyPath(string assemblyPath)
353public Assembly LoadFromNativeImagePath(string nativeImagePath, string? assemblyPath)
376public Assembly LoadFromStream(Stream assembly)
382public Assembly LoadFromStream(Stream assembly, Stream? assemblySymbols)
508/// * <see cref="Assembly.Load" />
509/// * <see cref="Assembly.GetType" />
561public static ContextualReflectionScope EnterContextualReflection(Assembly? activating)
909internal IntPtr GetResolvedUnmanagedDll(Assembly assembly, string unmanagedDllName)
912foreach (Func<Assembly, string, IntPtr> handler in Delegate.EnumerateInvocationList(_resolvingUnmanagedDll))
src\runtime\src\libraries\System.Private.CoreLib\src\System\StartupHookProvider.cs (1)
158Assembly assembly;
System\Reflection\Attribute.NativeAot.cs (8)
15public static Attribute GetCustomAttribute(Assembly element, Type attributeType)
19public static Attribute GetCustomAttribute(Assembly element, Type attributeType, bool inherit) => GetCustomAttribute(element, attributeType); // "inherit" is meaningless for assemblies
39public static Attribute[] GetCustomAttributes(Assembly element)
44public static Attribute[] GetCustomAttributes(Assembly element, bool inherit) => GetCustomAttributes(element); // "inherit" is meaningless for assemblies
45public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType)
49public static Attribute[] GetCustomAttributes(Assembly element, Type attributeType, bool inherit) => GetCustomAttributes(element, attributeType); // "inherit" is meaningless for modules
87public static bool IsDefined(Assembly element, Type attributeType)
92public static bool IsDefined(Assembly element, Type attributeType, bool inherit) => IsDefined(element, attributeType); // "inherit" is meaningless for assemblies
System\Reflection\TypeNameResolver.NativeAot.cs (9)
17private Func<AssemblyName, Assembly?>? _assemblyResolver;
18private Func<Assembly?, string, bool, Type?>? _typeResolver;
22private Assembly? _topLevelAssembly;
37Func<AssemblyName, Assembly?>? assemblyResolver,
38Func<Assembly?, string, bool, Type?>? typeResolver,
76Assembly topLevelAssembly)
97private Assembly? ResolveAssembly(Metadata.AssemblyNameInfo assemblyName)
99Assembly? assembly;
123Assembly? assembly;
System\Runtime\InteropServices\NativeLibrary.NativeAot.cs (5)
15internal static bool TryLoad(string libraryName, Assembly assembly, DllImportSearchPath searchPath, out IntPtr handle)
25internal static IntPtr LoadLibraryByName(string libraryName, Assembly assembly, DllImportSearchPath? searchPath, bool throwOnError)
38private static IntPtr LoadLibraryByName(string libraryName, Assembly assembly, bool userSpecifiedSearchFlags, DllImportSearchPath searchPath, bool throwOnError)
53private static DllImportSearchPath GetDllImportSearchPath(Assembly callingAssembly, out bool userSpecifiedSearchFlags)
68internal static IntPtr LoadBySearch(Assembly callingAssembly, bool userSpecifiedSearchFlags, bool searchAssemblyDirectory, int dllImportSearchPathFlags, ref LoadLibErrorTracker errorTracker, string libraryName)
System\Type.NativeAot.cs (6)
79public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver) => GetType(typeName, assemblyResolver, typeResolver, throwOnError: false, ignoreCase: false);
82public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver, bool throwOnError) => GetType(typeName, assemblyResolver, typeResolver, throwOnError: throwOnError, ignoreCase: false);
85public static Type GetType(string typeName, Func<AssemblyName, Assembly?>? assemblyResolver, Func<Assembly?, string, bool, Type?>? typeResolver, bool throwOnError, bool ignoreCase)
System.Private.DataContractSerialization (7)
System.Private.Reflection.Execution (5)
System.Private.Windows.Core (4)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (37)
System\Xml\Serialization\Compilation.cs (21)
22private readonly Assembly? _assembly;
42internal TempAssembly(XmlMapping[] xmlMappings, Assembly assembly, XmlSerializerImplementation? contract)
138internal static Assembly? LoadGeneratedAssembly(Type type, string? defaultNamespace, out XmlSerializerImplementation? contract)
140Assembly? serializer = null;
159serializer = Assembly.Load(name);
197serializer = Assembly.Load(serializerName); // LoadWithPartialName just does this in .Net Core; changing the obsolete call.
202serializer = Assembly.LoadFrom(serializerName);
227private static Assembly? LoadAssemblyByPath(Type type, string assemblyName)
229Assembly? assembly = null;
239if ((string.IsNullOrEmpty(path) || !File.Exists(path)) && !string.IsNullOrEmpty(Assembly.GetEntryAssembly()?.Location))
241path = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly()!.Location)!, $"{assemblyName}.dll");
251assembly = Assembly.LoadFile(path);
265private static bool IsSerializerVersionMatch(Assembly serializer, Type type, string? defaultNamespace)
301internal static bool GenerateSerializerToStream(XmlMapping[] xmlMappings, Type?[] types, string? defaultNamespace, Assembly? assembly, Hashtable assemblies, Stream stream)
318Assembly a = t.Assembly;
438internal static Assembly GenerateRefEmitAssembly(XmlMapping[] xmlMappings, Type?[] types)
441Assembly? mainAssembly = mainType?.Assembly;
540internal static Type GetTypeFromAssembly(Assembly assembly, string typeName)
589internal static void VerifyLoadContext(Type? t, Assembly? assembly)
692private readonly ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>> _collectibleCaches = new ConditionalWeakTable<Assembly, Dictionary<TempAssemblyCacheKey, TempAssembly>>();
System.Reflection (1)
System.Reflection.Context (23)
System.Reflection.Emit (11)
System.Reflection.MetadataLoadContext (24)
System.Reflection.TypeExtensions (3)
System.Resources.Extensions (11)
System.Runtime (1)
System.Runtime.InteropServices (1)
System.Runtime.InteropServices.JavaScript (3)
System.Runtime.Serialization.Formatters (4)
System.Runtime.Serialization.Schema (3)
System.Security.Permissions (4)
System.ServiceModel.NetNamedPipe.Tests (1)
System.ServiceModel.Primitives (1)
System.ServiceModel.Primitives.Tests (1)
System.Speech (21)
System.Text.Json (3)
System.Windows.Extensions (1)
System.Windows.Forms (17)
System.Windows.Forms.Design (24)
System.Xaml (98)
System\Xaml\MS\Impl\XmlNsInfo.cs (14)
26internal Assembly Assembly { get { return (Assembly)_assembly.Target; } }
117internal XmlNsInfo(Assembly assembly, bool fullyQualifyAssemblyName)
157Assembly assembly = Assembly;
194private void LoadNsDefHelper(IList<XmlNsDefinition> result, string xmlns, string clrns, Assembly assembly)
209Assembly assembly = Assembly;
248Assembly assembly = Assembly;
279private void LoadInternalsVisibleToHelper(List<AssemblyName> result, string assemblyName, Assembly assembly)
306Assembly assembly = Assembly;
340private void LoadOldToNewNsHelper(Dictionary<string, string> result, string oldns, string newns, Assembly assembly)
359Assembly assembly = Assembly;
392private void LoadPrefixesHelper(Dictionary<string, string> result, string xmlns, string prefix, Assembly assembly)
409Assembly assembly = Assembly;
453public NamespaceComparer(XmlNsInfo nsInfo, Assembly assembly)
System\Xaml\XamlSchemaContext.cs (38)
34private readonly ReadOnlyCollection<Assembly> _referenceAssemblies;
49public XamlSchemaContext(IEnumerable<Assembly> referenceAssemblies)
52public XamlSchemaContext(IEnumerable<Assembly> referenceAssemblies, XamlSchemaContextSettings settings)
57List<Assembly> listOfAssemblies = new List<Assembly>(referenceAssemblies);
58_referenceAssemblies = new ReadOnlyCollection<Assembly>(listOfAssemblies);
426Assembly resultAssembly = null;
432Assembly curAssembly = nsInfo.Assembly;
698public IList<Assembly> ReferenceAssemblies
709private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfo;
711private ConcurrentDictionary<Assembly, XmlNsInfo> _xmlnsInfoForUnreferencedAssemblies;
717private IList<Assembly> _unexaminedAssemblies;
726private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfo
731Interlocked.CompareExchange(ref _xmlnsInfo, CreateDictionary<Assembly, XmlNsInfo>(ReferenceEqualityComparer.Instance), null);
763private ConcurrentDictionary<Assembly, XmlNsInfo> XmlnsInfoForUnreferencedAssemblies
769Interlocked.CompareExchange(ref _xmlnsInfoForUnreferencedAssemblies, CreateDictionary<Assembly, XmlNsInfo>(ReferenceEqualityComparer.Instance), null);
776internal bool AreInternalsVisibleTo(Assembly fromAssembly, Assembly toAssembly)
832if (_unexaminedAssemblies is WeakReferenceList<Assembly>)
836Assembly assembly = _unexaminedAssemblies[i];
915internal string GetRootNamespace(Assembly asm)
969private XmlNsInfo GetXmlNsInfo(Assembly assembly)
997foreach (var asm in _referenceAssemblies)
1035private ReadOnlyCollection<string> GetXmlNsMappings(Assembly assembly, string clrNs)
1065Assembly[] currentAssemblies = AppDomain.CurrentDomain.GetAssemblies();
1066_unexaminedAssemblies = new WeakReferenceList<Assembly>(currentAssemblies.Length);
1068foreach (Assembly assembly in currentAssemblies)
1086_unexaminedAssemblies = new List<Assembly>(ReferenceAssemblies);
1114IList<Assembly> unexaminedAssembliesCopy;
1118_unexaminedAssemblies = new WeakReferenceList<Assembly>(0);
1126var assembly = unexaminedAssembliesCopy[i];
1247protected internal virtual Assembly OnAssemblyResolve(string assemblyName)
1264private Assembly ResolveReferenceAssembly(string assemblyName)
1322private Assembly ResolveAssembly(string assemblyName)
1329Assembly result = SafeSecurityHelper.GetLoadedAssembly(parsedAsmName);
1344return Assembly.Load(assemblyName);
1360return Assembly.Load(shortName);
1366return Assembly.LoadWithPartialName(assemblyName);
UIAutomationClient (7)
VBCSCompiler (3)