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