IAssembly Interface

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

Definition

Provides a unified interface for accessing assembly metadata.
public interface IAssembly : IWithCustomAttributes, IMetadataAdapter<Assembly>
Extends
Implemented by

Remarks

This interface abstracts assembly metadata access, allowing consistent operations regardless of how the assembly is loaded (e.g., Common Language Runtime or MetadataLoadContext).

Properties

AttributesGets a dictionary of metadata attributes of the assembly.
ExportedTypesGets the types exported by the assembly.
IdentityGets the identity of the assembly.
IsReflectionOnlyGets a value indicating whether the assembly is loaded in reflection-only context.
IsStronglyNamedGets a value indicating whether the assembly is strongly named.
ModulesGets the modules defined in the assembly.
NameGets the simple name of the assembly.
NamespacesGets the namespaces exported by the assembly and their associated types.
ReferencedAssembliesGets the identity of assemblies referenced by this assembly.
RepositoryGets the repository used to create and cache member metadata of the assembly.

Methods

TryGetType(string, out IType)Attempts to retrieve metadata of a type exported by the assembly using its full name.