Get the App
SLTechnology News&Howtos  ›  Development  › 

How to parse .NET assemblies and namespaces

Shulou Source: shulou.com Published: 2022-06-02 20:32:54 10月03日 Update

This article shows you how to parse .NET assemblies and namespaces, which is concise and easy to understand. I hope you can gain something through the detailed introduction of this article.

Assembly

An assembly (assembly) is a logical combination of one or more managed modules and some resource files.

component

Windows file header

CLR file header

Assembly manifest

Type metadata

MSIL (CIL) code

Embedded resource set

Action

Code reuse

Determine the type boundary

Versionable unit

Self-describing

Configurable

Namespace

A grouping of related types within an assembly, an assembly can contain any namespace, and each namespace can contain multiple types.

Root namespace

System

Microsoft

Resolve naming conflicts

Use fully qualified name

Use aliases

Nested namespace

Namespace A {namespace B {}}

GAC: global assembly cache

The full name of GAC is Global Assembly Cache, which can store some public Assembly that many programs need to use. It is a computer-wide code cache that stores specially installed assemblies that are shared by many applications on the computer. Applications deployed in the global assembly cache must have strong names.

Default path C:\ Windows\ Assembly

The above is how to parse .NET assemblies and namespaces. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are welcome to follow the industry information channel.

Tags: Program space type code file cache global content application skill knowledge resource application concise concise function full name alias unit name Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Linux MariaDB Huawei vpn