43 references to CreateFromStream
BuildValidator (1)
LocalReferenceResolver.cs (1)
134metadataReference = MetadataReference.CreateFromStream(
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
65project = project.AddMetadataReference(MetadataReference.CreateFromStream(assemblyStream));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (11)
CodeGen\CodeGenFunctionPointersTests.cs (1)
4071var invalidAttributeReference = MetadataReference.CreateFromStream(peStream);
CodeGen\CodeGenMscorlib.cs (6)
248var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream()); 282var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream()); 319var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream()); 357var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream()); 416var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream()); 478var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream());
CodeGen\EventTests.cs (1)
647var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream());
CodeGen\FixedSizeBufferTests.cs (1)
573references: new MetadataReference[] { MetadataReference.CreateFromStream(comp1.EmitToStream()) },
Emit\CompilationEmitTests.cs (1)
4611CompileAndVerify(p2, new[] { MetadataReference.CreateFromStream(c1.EmitToStream()) }, expectedOutput: "0");
Emit\OptionalArgumentsTests.cs (1)
184references: new[] { MetadataReference.CreateFromStream(comp1.EmitToStream()) },
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (10)
Attributes\AttributeTests.cs (2)
4885var ref1 = MetadataReference.CreateFromStream(metadataStream1); 4894var ref2 = MetadataReference.CreateFromStream(metadataStream2);
Attributes\AttributeTests_WellKnownAttributes.cs (1)
6230var peReference = MetadataReference.CreateFromStream(CreateCompilation(peSource).EmitToStream());
Attributes\InternalsVisibleToAndStrongNameTests.cs (3)
883new[] { MetadataReference.CreateFromStream(otherStream) }, 2417CompileAndVerify(other.WithReferences(new[] { other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })).VerifyDiagnostics(); 2444other.WithReferences(new []{other.References.ElementAt(0), MetadataReference.CreateFromStream(unsigned.EmitToStream()) })};
FlowAnalysis\StructTests.cs (4)
545var metadataReference = MetadataReference.CreateFromStream(comp1.EmitToStream()); 605var metadataReference = MetadataReference.CreateFromStream(comp1.EmitToStream()); 638var metadataReference = MetadataReference.CreateFromStream(comp1.EmitToStream()); 683var metadataReference = MetadataReference.CreateFromStream(comp1.EmitToStream());
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (7)
Semantics\ColorColorTests.cs (4)
1581var ref1 = MetadataReference.CreateFromStream(comp1.EmitToStream()); 1622var ref1 = MetadataReference.CreateFromStream(comp1.EmitToStream()); 1660var ref1 = MetadataReference.CreateFromStream(comp1.EmitToStream()); 1701var ref1 = MetadataReference.CreateFromStream(comp1.EmitToStream());
Semantics\ForEachTests.cs (1)
3071var reference1 = MetadataReference.CreateFromStream(compilation1.EmitToStream());
Semantics\SuppressAccessibilityChecksTests.cs (2)
31var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()); 153var referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (3)
Compilation\CompilationAPITests.cs (3)
3101var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.Module); 3120var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.Module); 3141var moduleReference = MetadataReference.CreateFromStream(moduleStream, MetadataReferenceProperties.Assembly);
Microsoft.CodeAnalysis.Test.Utilities (1)
Platform\Desktop\DesktopRuntimeUtil.cs (1)
56return MetadataReference.CreateFromStream(uncompressed, properties, documentation, filePath);
Microsoft.CodeAnalysis.UnitTests (6)
MetadataReferences\MetadataReferenceTests.cs (6)
49Assert.Throws<ArgumentNullException>(() => MetadataReference.CreateFromStream(null)); 98var r = MetadataReference.CreateFromStream(stream); 118var r = MetadataReference.CreateFromStream(new MemoryStream(TestResources.General.C1, writable: false)); 129var r = MetadataReference.CreateFromStream( 145var r = MetadataReference.CreateFromStream( 584var r = MetadataReference.CreateFromStream(new MemoryStream(TestResources.SymbolsTests.Metadata.InvalidPublicKey, writable: false));
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Compilation\SuppressAccessibilityChecksTests.vb (2)
32Dim referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream()) 172Dim referenceA = MetadataReference.CreateFromStream(compilationA.EmitToStream())
SemanticSearch.BuildTask (1)
GenerateFilteredReferenceAssembliesTask.cs (1)
281var metadataRef = MetadataReference.CreateFromStream(readableStream);