Search Results for

    Show / Hide Table of Contents

    Class AssemblyIdentity

    Inheritance
    object
    AssemblyIdentity
    Implements
    IEquatable<AssemblyIdentity>
    Inherited Members
    object.GetType()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: Microsoft.CodeAnalysis
    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
    Type Name Description
    string name
    Version version
    string cultureName
    ImmutableArray<byte> publicKeyOrToken
    bool hasPublicKey
    bool isRetargetable
    AssemblyContentType contentType

    Properties

    ContentType

    Declaration
    public AssemblyContentType ContentType { get; }
    Property Value
    Type Description
    AssemblyContentType

    CultureName

    Declaration
    public string CultureName { get; }
    Property Value
    Type Description
    string

    Flags

    Declaration
    public AssemblyNameFlags Flags { get; }
    Property Value
    Type Description
    AssemblyNameFlags

    HasPublicKey

    Declaration
    public bool HasPublicKey { get; }
    Property Value
    Type Description
    bool

    IsRetargetable

    Declaration
    public bool IsRetargetable { get; }
    Property Value
    Type Description
    bool

    IsStrongName

    Declaration
    public bool IsStrongName { get; }
    Property Value
    Type Description
    bool

    Name

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    string

    PublicKey

    Declaration
    public ImmutableArray<byte> PublicKey { get; }
    Property Value
    Type Description
    ImmutableArray<byte>

    PublicKeyToken

    Declaration
    public ImmutableArray<byte> PublicKeyToken { get; }
    Property Value
    Type Description
    ImmutableArray<byte>

    Version

    Declaration
    public Version Version { get; }
    Property Value
    Type Description
    Version

    Methods

    Equals(AssemblyIdentity?)

    Declaration
    public bool Equals(AssemblyIdentity? obj)
    Parameters
    Type Name Description
    AssemblyIdentity obj
    Returns
    Type Description
    bool

    Equals(object?)

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj
    Returns
    Type Description
    bool
    Overrides
    object.Equals(object)

    FromAssemblyDefinition(Assembly)

    Declaration
    public static AssemblyIdentity FromAssemblyDefinition(Assembly assembly)
    Parameters
    Type Name Description
    Assembly assembly
    Returns
    Type Description
    AssemblyIdentity

    GetDisplayName(bool)

    Declaration
    public string GetDisplayName(bool fullKey = false)
    Parameters
    Type Name Description
    bool fullKey
    Returns
    Type Description
    string

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int
    Overrides
    object.GetHashCode()

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    TryParseDisplayName(string, out AssemblyIdentity?)

    Declaration
    public static bool TryParseDisplayName(string displayName, out AssemblyIdentity? identity)
    Parameters
    Type Name Description
    string displayName
    AssemblyIdentity identity
    Returns
    Type Description
    bool

    TryParseDisplayName(string, out AssemblyIdentity?, out AssemblyIdentityParts)

    Declaration
    public static bool TryParseDisplayName(string displayName, out AssemblyIdentity? identity, out AssemblyIdentityParts parts)
    Parameters
    Type Name Description
    string displayName
    AssemblyIdentity identity
    AssemblyIdentityParts parts
    Returns
    Type Description
    bool

    Operators

    operator ==(AssemblyIdentity?, AssemblyIdentity?)

    Declaration
    public static bool operator ==(AssemblyIdentity? left, AssemblyIdentity? right)
    Parameters
    Type Name Description
    AssemblyIdentity left
    AssemblyIdentity right
    Returns
    Type Description
    bool

    operator !=(AssemblyIdentity?, AssemblyIdentity?)

    Declaration
    public static bool operator !=(AssemblyIdentity? left, AssemblyIdentity? right)
    Parameters
    Type Name Description
    AssemblyIdentity left
    AssemblyIdentity right
    Returns
    Type Description
    bool

    Implements

    IEquatable<T>
    In this article
    Back to top Generated by DocFX | Copyright (c) 2018- The NUnit Project - Licensed under CC BY-NC-SA 4.0