Class AssemblyIdentity
Inheritance
AssemblyIdentity
Assembly: Microsoft.CodeAnalysis.dll
Syntax
public sealed class AssemblyIdentity : IEquatable<AssemblyIdentity>
Constructors
AssemblyIdentity(string?, Version?, string?, ImmutableArray<byte>, bool, bool, AssemblyContentType)
Declaration
public AssemblyIdentity(string? name, Version? version = null, string? cultureName = null, ImmutableArray<byte> publicKeyOrToken = default, bool hasPublicKey = false, bool isRetargetable = false, AssemblyContentType contentType = AssemblyContentType.Default)
Parameters
Properties
ContentType
Declaration
public AssemblyContentType ContentType { get; }
Property Value
CultureName
Declaration
public string CultureName { get; }
Property Value
Flags
Declaration
public AssemblyNameFlags Flags { get; }
Property Value
HasPublicKey
Declaration
public bool HasPublicKey { get; }
Property Value
IsRetargetable
Declaration
public bool IsRetargetable { get; }
Property Value
IsStrongName
Declaration
public bool IsStrongName { get; }
Property Value
Name
Declaration
public string Name { get; }
Property Value
PublicKey
Declaration
public ImmutableArray<byte> PublicKey { get; }
Property Value
PublicKeyToken
Declaration
public ImmutableArray<byte> PublicKeyToken { get; }
Property Value
Version
Declaration
public Version Version { get; }
Property Value
Methods
Equals(AssemblyIdentity?)
Declaration
public bool Equals(AssemblyIdentity? obj)
Parameters
Returns
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
FromAssemblyDefinition(Assembly)
Declaration
public static AssemblyIdentity FromAssemblyDefinition(Assembly assembly)
Parameters
Returns
GetDisplayName(bool)
Declaration
public string GetDisplayName(bool fullKey = false)
Parameters
| Type |
Name |
Description |
| bool |
fullKey |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
ToString()
Declaration
public override string ToString()
Returns
Overrides
TryParseDisplayName(string, out AssemblyIdentity?)
Declaration
public static bool TryParseDisplayName(string displayName, out AssemblyIdentity? identity)
Parameters
Returns
TryParseDisplayName(string, out AssemblyIdentity?, out AssemblyIdentityParts)
Declaration
public static bool TryParseDisplayName(string displayName, out AssemblyIdentity? identity, out AssemblyIdentityParts parts)
Parameters
Returns
Operators
operator ==(AssemblyIdentity?, AssemblyIdentity?)
Declaration
public static bool operator ==(AssemblyIdentity? left, AssemblyIdentity? right)
Parameters
Returns
operator !=(AssemblyIdentity?, AssemblyIdentity?)
Declaration
public static bool operator !=(AssemblyIdentity? left, AssemblyIdentity? right)
Parameters
Returns
Implements