135 references to GetAssembly
Microsoft.Analyzers.Extra.Tests (51)
AsyncMethodWithoutCancellationTests.cs (1)
163new[] { Assembly.GetAssembly(typeof(HttpContext))! },
CallAnalysis\ArraysTests.cs (3)
121Assembly.GetAssembly(typeof(SortedDictionary<,>))!, 122Assembly.GetAssembly(typeof(ImmutableDictionary<,>))!, 123Assembly.GetAssembly(typeof(FrozenDictionary<,>))!,
CallAnalysis\LegacyCollectionTests.cs (3)
43Assembly.GetAssembly(typeof(System.Collections.ArrayList))!, 44Assembly.GetAssembly(typeof(System.Collections.Queue))!, 45Assembly.GetAssembly(typeof(System.Collections.Specialized.HybridDictionary))!
CallAnalysis\LegacyLoggingTests.cs (22)
74new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 167new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 230new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 291new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 365new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 441new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 524new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 612new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 682new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 755new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 816.CreateTestProject(new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! })
CallAnalysis\LegacyLoggingTests.Extra.cs (15)
94new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 172new[] { Assembly.GetAssembly(typeof(ILogger))! }, 235new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 298new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 359new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 435new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 686new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! }, 748new[] { Assembly.GetAssembly(typeof(ILogger))!, Assembly.GetAssembly(typeof(LoggerMessageAttribute))! },
CallAnalysis\StaticTimeTests.cs (4)
17Assembly.GetAssembly(typeof(Thread))!, 18Assembly.GetAssembly(typeof(Task))!, 19Assembly.GetAssembly(typeof(TimeSpan))!, 20Assembly.GetAssembly(typeof(DateTime))!,
Resources\RoslynTestUtils.cs (1)
35var corelib = Assembly.GetAssembly(typeof(object))!.Location;
UsingToStringInLoggersTests.cs (2)
18Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 19Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!,
Microsoft.Analyzers.Local.Tests (17)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (15)
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))!,
CallAnalysis\UseThrowsTests.cs (1)
21Assembly.GetAssembly(typeof(Throw))!,
Resources\RoslynTestUtils.cs (1)
35var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
GeneratorTests.cs (3)
170Assembly.GetAssembly(typeof(ILogger))!, 171Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 172Assembly.GetAssembly(typeof(Extensions.Compliance.Classification.DataClassification))!,
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.ContextualOptions.Unit.Tests (1)
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.Logging.Unit.Tests (25)
AttributeParserTests.cs (6)
237var loggerAssembly = Assembly.GetAssembly(typeof(ILogger)); 238var loggerMessageAssembly = Assembly.GetAssembly(typeof(LoggerMessageAttribute)); 239var enrichmentAssembly = Assembly.GetAssembly(typeof(IEnrichmentTagCollector)); 240var dataClassificationAssembly = Assembly.GetAssembly(typeof(DataClassification)); 241var simpleDataClassificationAssembly = Assembly.GetAssembly(typeof(PrivateDataAttribute)); 242var redactorProviderAssembly = Assembly.GetAssembly(typeof(IRedactorProvider));
CompilationHelper.cs (1)
25string corelib = Assembly.GetAssembly(typeof(object))!.Location;
EmitterTests.cs (7)
41Assembly.GetAssembly(typeof(ILogger))!, 42Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 43Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!, 44Assembly.GetAssembly(typeof(DataClassification))!, 45Assembly.GetAssembly(typeof(IRedactorProvider))!, 46Assembly.GetAssembly(typeof(PrivateDataAttribute))!, 47Assembly.GetAssembly(typeof(BigInteger))!,
ParserTests.cs (6)
722Assembly.GetAssembly(typeof(ILogger))!, 723Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 724Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!, 725Assembly.GetAssembly(typeof(DataClassification))!, 726Assembly.GetAssembly(typeof(PrivateDataAttribute))!, 727Assembly.GetAssembly(typeof(BigInteger))!,
ParserTests.LogProperties.cs (4)
479Assembly.GetAssembly(typeof(ILogger))!, 480Assembly.GetAssembly(typeof(LogPropertiesAttribute))!, 481Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 482Assembly.GetAssembly(typeof(DateTime))!,
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.MetadataExtractor.Unit.Tests (8)
GeneratorTests.cs (7)
207Assembly.GetAssembly(typeof(Meter))!, 208Assembly.GetAssembly(typeof(CounterAttribute))!, 209Assembly.GetAssembly(typeof(HistogramAttribute))!, 210Assembly.GetAssembly(typeof(GaugeAttribute))!, 211Assembly.GetAssembly(typeof(ILogger))!, 212Assembly.GetAssembly(typeof(LoggerMessageAttribute))!, 213Assembly.GetAssembly(typeof(Extensions.Compliance.Classification.DataClassification))!,
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.Metrics.Unit.Tests (10)
EmitterTests.cs (5)
33Assembly.GetAssembly(typeof(Meter))!, 34Assembly.GetAssembly(typeof(CounterAttribute))!, 35Assembly.GetAssembly(typeof(HistogramAttribute))!, 36Assembly.GetAssembly(typeof(CounterAttribute<>))!, 37Assembly.GetAssembly(typeof(HistogramAttribute<>))!,
ParserTests.cs (4)
778Assembly.GetAssembly(typeof(Meter))!, 779Assembly.GetAssembly(typeof(CounterAttribute))!, 780Assembly.GetAssembly(typeof(HistogramAttribute))!, 781Assembly.GetAssembly(typeof(GaugeAttribute))!,
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
Microsoft.Gen.MetricsReports.Unit.Tests (5)
GeneratorTests.cs (4)
153Assembly.GetAssembly(typeof(Meter))!, 154Assembly.GetAssembly(typeof(CounterAttribute))!, 155Assembly.GetAssembly(typeof(HistogramAttribute))!, 156Assembly.GetAssembly(typeof(GaugeAttribute))!
test\Generators\Shared\RoslynTestUtils.cs (1)
58var corelib = Assembly.GetAssembly(typeof(object))!.Location;
PresentationCore (2)
System\Windows\Media\ColorContext.cs (2)
105_colorProfileResources, Assembly.GetAssembly(typeof(ColorContext)) 517ResourceManager resourceManager = new ResourceManager(_colorProfileResources, Assembly.GetAssembly(typeof(ColorContext)));
PresentationFramework (3)
System\Windows\Documents\FixedSchema.cs (3)
459ResourceManager resourceManager = new ResourceManager( "Schemas_S0", Assembly.GetAssembly(typeof(XpsS0Schema))); 471ResourceManager resourceManager = new ResourceManager( "Schemas_S0", Assembly.GetAssembly(typeof(XpsS0Schema))); 754ResourceManager resourceManager = new ResourceManager("Schemas_DocStructure", Assembly.GetAssembly(typeof(XpsDocStructSchema)));
SignalR.Client.FunctionalTestApp (1)
Startup.cs (1)
261var attributes = Assembly.GetAssembly(typeof(Startup)).GetCustomAttributes<AssemblyMetadataAttribute>();
SignalRSamples (1)
Startup.cs (1)
52var attributes = Assembly.GetAssembly(typeof(Startup)).GetCustomAttributes<AssemblyMetadataAttribute>();
System.ServiceModel.NetNamedPipe.Tests (1)
NetNamedPipeBindingTest.cs (1)
19Type t = Assembly.GetAssembly(typeof(NamedPipeTransportBindingElement))
System.ServiceModel.Primitives.Tests (1)
Security\SecurityUtilsTest.cs (1)
17Type t = Assembly.GetAssembly(typeof(WindowsClientCredential))
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
14private readonly Assembly _assembly = Assembly.GetAssembly(typeof(AnchorEditor));
System.Windows.Forms.Tests (3)
System\Windows\Forms\AxSystemMonitorTests.cs (1)
38Assembly assembly = Assembly.GetAssembly(assemblyType);
System\Windows\Forms\AxWebBrowserTests.cs (1)
38Assembly assembly = Assembly.GetAssembly(assemblyType);
System\Windows\Forms\EmbeddedResourceTests.cs (1)
14private readonly Assembly _assembly = Assembly.GetAssembly(typeof(AccessibleObject));
UIAutomationClient (1)
MS\Internal\Automation\ProxyManager.cs (1)
356AssemblyName ourAssembly = Assembly.GetAssembly(typeof(ProxyManager)).GetName();