2 writes to AssemblyName
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeName.cs (2)
57
AssemblyName
= assemblyName;
82
AssemblyName
= assemblyName;
44 references to AssemblyName
illink (5)
Linker\TypeNameResolver.cs (4)
58
if (typeName.
AssemblyName
is AssemblyNameInfo assemblyName)
100
Debug.Assert (topLevelTypeName.
AssemblyName
== typeName.
AssemblyName
);
115
if (topLevelTypeName.
AssemblyName
== null && assembly != coreLibrary) {
Linker\TypeNameResolver.WithDiagnostics.cs (1)
58
if (typeName.
AssemblyName
is null)
System.Formats.Nrbf (2)
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (2)
141
if (typeName.
AssemblyName
is null)
196
|| typeName.
AssemblyName
is not null) // the type and library names should be provided separately
System.Private.Windows.Core (4)
System\Private\Windows\Core\BinaryFormat\Deserializer\DefaultTypeResolver.cs (4)
32
Debug.Assert(typeName.
AssemblyName
is not null);
51
if (!_assemblies.TryGetValue(typeName.
AssemblyName
.FullName, out Assembly? assembly))
53
AssemblyName assemblyName = typeName.
AssemblyName
.ToAssemblyName();
68
_assemblies.Add(typeName.
AssemblyName
.FullName, assembly);
System.Reflection.Metadata (5)
System\Reflection\Metadata\TypeName.cs (5)
95
/// If <see cref="
AssemblyName
"/> returns null, simply returns <see cref="FullName"/>.
98
=> _assemblyQualifiedName ??=
AssemblyName
is null ? FullName : $"{FullName}, {
AssemblyName
.FullName}"; // see recursion comments in FullName
528
return new TypeName(fullName: null,
AssemblyName
, elementOrGenericType: this, declaringType: _declaringType, genericTypeArguments: typeArguments);
534
assemblyName:
AssemblyName
,
System.Resources.Extensions (5)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (5)
40
Debug.Assert(typeName.
AssemblyName
is not null);
47
if (_binder?.BindToType(typeName.
AssemblyName
.FullName, typeName.FullName) is Type binderType)
59
if (!_assemblies.TryGetValue(typeName.
AssemblyName
.FullName, out Assembly? assembly))
61
AssemblyName assemblyName = typeName.
AssemblyName
.ToAssemblyName();
76
_assemblies.Add(typeName.
AssemblyName
.FullName, assembly);
System.Windows.Forms (9)
System\Resources\ResXSerializationBinder.cs (2)
52
if (parsed.
AssemblyName
is { } assemblyNameInfo)
84
&& parsed.
AssemblyName
is { } assemblyInfo)
System\Windows\Forms\Internal\TypeExtensions.cs (3)
92
if (!AssemblyNamesLessVersionMatch(name, typeName.
AssemblyName
))
174
if (!AssemblyNamesMatch(x.
AssemblyName
, y.
AssemblyName
))
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
73
if (record.TypeName.
AssemblyName
?.FullName != IJsonData.CustomAssemblyName)
System\Windows\Forms\OLE\Clipboard.cs (1)
319
/// from the allowed type and match it to the <see cref="AssemblyNameInfo.FullName"/> property of <see cref="TypeName.
AssemblyName
"/>.
System\Windows\Forms\OLE\DataObject.Composition.Binder.cs (1)
287
if (typeName.
AssemblyName
is not AssemblyNameInfo info
System\Windows\Forms\OLE\DataObject.Composition.TypeNameComparer.cs (1)
63
if (obj.
AssemblyName
is AssemblyNameInfo info)
System.Windows.Forms.Tests (14)
System\Resources\ResXSerializationBinderTests.cs (1)
89
AssemblyNameInfo? assemblyNameInfo = parsed.
AssemblyName
;
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (3)
47
binary.TypeName.
AssemblyName
!.FullName.Should().Be(IJsonData.CustomAssemblyName);
118
root.TypeName.
AssemblyName
!.FullName.Should().Be(AssemblyRef.SystemDrawing);
172
root.TypeName.
AssemblyName
!.FullName.Should().Be(typeof(WinFormsBinaryFormatWriter).Assembly.FullName);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
1013
AssemblyNameInfo? info1 = typeName.
AssemblyName
;
1014
AssemblyNameInfo? info2 = name.
AssemblyName
;
System\Windows\Forms\TypeExtensionsTests.cs (7)
107
name.
AssemblyName
!.FullName.Should().Be("Abc");
111
name.
AssemblyName
!.FullName.Should().Be("Abc");
115
name.
AssemblyName
!.FullName.Should().Be("Abc");
119
name.
AssemblyName
!.FullName.Should().Be(Mscorlib);
123
name.
AssemblyName
!.FullName.Should().Be(Mscorlib);
127
name.
AssemblyName
!.FullName.Should().Be(Mscorlib);
131
name.
AssemblyName
!.FullName.Should().Be(Mscorlib);
System\Windows\Forms\TypeNameComparerTests.cs (1)
78
AssemblyNameInfo info = name.
AssemblyName
!;