Skip to content

AssemblyIdentityFormat

Namespace: Dotsider.Core.Analysis

Assembly: Dotsider.Core.dll

Formats an assembly’s full identity into a stable opaque string used as a graph node identifier and as a key for grouping TypeRefInfo entries by the full identity of their resolution scope.

public static class AssemblyIdentityFormat

ObjectAssemblyIdentityFormat

Formats an assembly identity into its canonical identifier string.

Parameters:

  • name (String): The assembly simple name.
  • version (String): The assembly version, or null.
  • culture (String): The assembly culture, or null/empty for culture-neutral.
  • publicKeyToken (String): The public key token hex, or null.

Returns: String

A stable opaque identifier derived from the four identity fields.

public static string Format(string name, string? version, string? culture, string? publicKeyToken)

The format is "{Name}|{Version}|{Culture}|{PublicKeyToken}". Null or empty culture is normalized to "neutral" so two nodes only differ by culture when they truly do. The identifier is treated as opaque by consumers; it is never parsed.