87 references to PublicKey
Microsoft.CodeAnalysis (7)
Compilation\Compilation.cs (1)
221Assembly.Identity.PublicKey,
Compilation\DeterministicKeyBuilder.cs (1)
332compilation.Assembly.Identity.PublicKey,
MetadataReader\PEAssembly.cs (2)
142keys.Add(identity.PublicKey); 146keys.Add(identity.PublicKey);
PEWriter\MetadataWriter.cs (2)
1983if (!sourceAssembly.Identity.PublicKey.IsDefaultOrEmpty) 1992publicKey: metadata.GetOrAddBlob(sourceAssembly.Identity.PublicKey),
PEWriter\SigningUtilities.cs (1)
62keySize = assembly.Identity.PublicKey.Length;
Microsoft.CodeAnalysis.CSharp (6)
Symbols\Metadata\PE\PEAssemblySymbol.cs (1)
238return Identity.PublicKey;
Symbols\MissingAssemblySymbol.cs (1)
71get { return Identity.PublicKey; }
Symbols\PublicModel\AssemblySymbol.cs (1)
86IVTConclusion conclusion = identity.PerformIVTCheck(assemblyWantingAccess.Identity.PublicKey, key);
Symbols\Source\SourceAssemblySymbol.cs (3)
2318if (identity.PublicKey.IsEmpty) 2329keys.TryAdd(identity.PublicKey, locationAndValue); 2334keys.TryAdd(identity.PublicKey, locationAndValue);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (29)
Attributes\InternalsVisibleToAndStrongNameTests.cs (29)
111Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 145Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 156Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 175Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 185Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 257Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 284Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 304Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 314Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 326Assert.True(ByteSequenceComparer.Equals(TestResources.General.snPublicKey.AsImmutableOrNull(), other.Assembly.Identity.PublicKey)); 351Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty); 360Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)); 373Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 387Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 406Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 418Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 430Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)); 454Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 465Assert.True(other.Assembly.Identity.PublicKey.IsEmpty); 479Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)); 508Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)); 1109Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1138Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1167Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1199Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1234Assert.True(ByteSequenceComparer.Equals(s_publicKey, requestor.Assembly.Identity.PublicKey)); 1460Assert.Equal(TestResources.General.snMaxSizePublicKey, comp.Assembly.Identity.PublicKey); 1478Assert.Equal(TestResources.General.snMaxSizePublicKey, comp2.Assembly.Identity.PublicKey); 1488Assert.Equal(TestResources.General.snMaxSizePublicKey, comp3.Assembly.Identity.PublicKey);
Microsoft.CodeAnalysis.Features (1)
Completion\Providers\AbstractInternalsVisibleToCompletionProvider.cs (1)
289return GetPublicKeyAsHexString(compilation.Assembly.Identity.PublicKey);
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\DecompiledSource\AssemblyResolver.cs (1)
112var publicKeyToken = assembly.Identity.PublicKey;
Microsoft.CodeAnalysis.UnitTests (10)
MetadataReferences\AssemblyIdentityExtensions.cs (2)
31if (identity.PublicKey.Length > 0) 33result.SetPublicKey(identity.PublicKey.ToArray());
MetadataReferences\AssemblyIdentityTests.cs (8)
114AssertEx.Equal(id.PublicKey, PublicKey1); 150Assert.Equal(0, id.PublicKey.Length); 161AssertEx.Equal(PublicKey1, id.PublicKey); 172Assert.Equal(0, id.PublicKey.Length); 183AssertEx.Equal(PublicKey1, id.PublicKey); 194AssertEx.Equal(PublicKey1, id.PublicKey); 265AssertEx.Equal(PublicKey1, id.PublicKey); 275Assert.Equal(0, id.PublicKey.Length);
Microsoft.CodeAnalysis.VisualBasic (5)
Symbols\AssemblySymbol.vb (1)
754Dim conclusion As IVTConclusion = Me.Identity.PerformIVTCheck(assemblyWantingAccess.Identity.PublicKey, key)
Symbols\MissingAssemblySymbol.vb (1)
65Return Identity.PublicKey
Symbols\Source\SourceAssemblySymbol.vb (3)
996If identity.PublicKey.IsEmpty Then 1005keys.TryAdd(identity.PublicKey, locationAndValue) 1008keys.TryAdd(identity.PublicKey, locationAndValue)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (24)
Attributes\InternalsVisibleToAndStrongNameTests.vb (24)
84Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 104Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 114Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 134Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 144Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 163Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 182Assert.True(ByteSequenceComparer.Equals(s_publicKey, other.Assembly.Identity.PublicKey)) 210Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 220Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 239Assert.True(ByteSequenceComparer.Equals(TestResources.General.snPublicKey.AsImmutableOrNull(), other.Assembly.Identity.PublicKey)) 270Assert.True(comp.Assembly.Identity.PublicKey.IsEmpty) 280Assert.True(ByteSequenceComparer.Equals(s_publicKey, comp.Assembly.Identity.PublicKey)) 302Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 350Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 369Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 387Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 393AssertEx.Equal(identity.PublicKey, s_publicKey) 420Assert.True(ByteSequenceComparer.Equals(s_publicKey, c.Assembly.Identity.PublicKey)) 426AssertEx.Equal(identity.PublicKey, s_publicKey) 511Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 540Assert.True(other.Assembly.Identity.PublicKey.IsEmpty) 1142Assert.Equal(TestResources.General.snMaxSizePublicKey, comp.Assembly.Identity.PublicKey) 1160Assert.Equal(TestResources.General.snMaxSizePublicKey, comp2.Assembly.Identity.PublicKey) 1167Assert.Equal(TestResources.General.snMaxSizePublicKey, comp3.Assembly.Identity.PublicKey)
VBCSCompiler.UnitTests (4)
AnalyzerConsistencyCheckerTests.cs (4)
115var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey; 140var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey; 179_ = CreateNetStandardDll(directory, "System.Memory", "2.0.0.0", NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey); 237var key = NetStandard20.References.netstandard.GetAssemblyIdentity().PublicKey;