2 writes to AssemblyName
System.Reflection.Metadata (2)
System\Reflection\Metadata\TypeName.cs (2)
57AssemblyName = assemblyName; 82AssemblyName = assemblyName;
44 references to AssemblyName
illink (5)
System.Formats.Nrbf (2)
System\Formats\Nrbf\Utils\TypeNameHelpers.cs (2)
141if (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)
32Debug.Assert(typeName.AssemblyName is not null); 51if (!_assemblies.TryGetValue(typeName.AssemblyName.FullName, out Assembly? assembly)) 53AssemblyName 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 528return new TypeName(fullName: null, AssemblyName, elementOrGenericType: this, declaringType: _declaringType, genericTypeArguments: typeArguments); 534assemblyName: AssemblyName,
System.Resources.Extensions (5)
System\Resources\Extensions\BinaryFormat\BinaryFormattedObject.TypeResolver.cs (5)
40Debug.Assert(typeName.AssemblyName is not null); 47if (_binder?.BindToType(typeName.AssemblyName.FullName, typeName.FullName) is Type binderType) 59if (!_assemblies.TryGetValue(typeName.AssemblyName.FullName, out Assembly? assembly)) 61AssemblyName assemblyName = typeName.AssemblyName.ToAssemblyName(); 76_assemblies.Add(typeName.AssemblyName.FullName, assembly);
System.Windows.Forms (9)
System\Resources\ResXSerializationBinder.cs (2)
52if (parsed.AssemblyName is { } assemblyNameInfo) 84&& parsed.AssemblyName is { } assemblyInfo)
System\Windows\Forms\Internal\TypeExtensions.cs (3)
92if (!AssemblyNamesLessVersionMatch(name, typeName.AssemblyName)) 174if (!AssemblyNamesMatch(x.AssemblyName, y.AssemblyName))
System\Windows\Forms\Nrbf\WinFormsSerializationRecordExtensions.cs (1)
73if (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)
287if (typeName.AssemblyName is not AssemblyNameInfo info
System\Windows\Forms\OLE\DataObject.Composition.TypeNameComparer.cs (1)
63if (obj.AssemblyName is AssemblyNameInfo info)
System.Windows.Forms.Tests (14)
System\Resources\ResXSerializationBinderTests.cs (1)
89AssemblyNameInfo? assemblyNameInfo = parsed.AssemblyName;
System\Windows\Forms\BinaryFormat\WinFormsBinaryFormattedObjectTests.cs (3)
47binary.TypeName.AssemblyName!.FullName.Should().Be(IJsonData.CustomAssemblyName); 118root.TypeName.AssemblyName!.FullName.Should().Be(AssemblyRef.SystemDrawing); 172root.TypeName.AssemblyName!.FullName.Should().Be(typeof(WinFormsBinaryFormatWriter).Assembly.FullName);
System\Windows\Forms\BinaryFormatUtilitiesTests.cs (2)
1013AssemblyNameInfo? info1 = typeName.AssemblyName; 1014AssemblyNameInfo? info2 = name.AssemblyName;
System\Windows\Forms\TypeExtensionsTests.cs (7)
107name.AssemblyName!.FullName.Should().Be("Abc"); 111name.AssemblyName!.FullName.Should().Be("Abc"); 115name.AssemblyName!.FullName.Should().Be("Abc"); 119name.AssemblyName!.FullName.Should().Be(Mscorlib); 123name.AssemblyName!.FullName.Should().Be(Mscorlib); 127name.AssemblyName!.FullName.Should().Be(Mscorlib); 131name.AssemblyName!.FullName.Should().Be(Mscorlib);
System\Windows\Forms\TypeNameComparerTests.cs (1)
78AssemblyNameInfo info = name.AssemblyName!;