AssemblyAdapter.GetMetadataAttributes Method

Namespace
Kampute.DocToolkit.Metadata.Adapters
Assembly
  • Kampute.DocToolkit.dll

Definition

Retrieves the assembly's metadata attributes as key-value pairs.
protected virtual IReadOnlyDictionary<string, object> GetMetadataAttributes()

Returns

IReadOnlyDictionary<string, object>
A read-only dictionary containing the assembly's metadata attributes.

Remarks

This method extracts custom attributes from the assembly that follow the naming convention System.Reflection.Assembly*Attribute and maps them to key-value pairs.

The attributes of type AssemblyMetadataAttribute are treated specially, where the first constructor argument is used as the key and the second as the value.

The method uses case-insensitive keys and ignores duplicate attribute names, keeping the first occurrence.