gpt4 book ai didi

c# - 程序集 + 元数据 + 程序集 list + MSIL 代码

转载 作者:太空宇宙 更新时间:2023-11-03 18:35:56 29 4
gpt4 key购买 nike

任何人都可以回答以下问题。我正在使用 c# 语言。

  1. 我可以将程序集调用为 .ddl 或 .exe 文件吗?
  2. 我可以将 Assembly Manifest 称为程序集吗?
  3. 程序集、元数据和程序集 list 之间有何不同?
  4. 我能说吗

    .DLL 或 .EXE = 程序集 + 元数据 + 程序集 list + MSIL 代码。

请帮我解决这些问题。

最佳答案

1 -- 程序集可以是单个 .DLL 或 .EXE 文件,但并非所有 .DLL 和 .EXE 都是程序集。程序集特定于 .NET 框架。您的 .NET 应用程序可以引用或加载 .EXE 和 .DLL 程序集。

2 -- 程序集 list 只是程序集的一部分,其中包含描述程序集的元数据。 From MSDN程序集 list :

  • Enumerates the files that make up the assembly.

  • Governs how references to the assembly's types and resources map to the files that contain their declarations and implementations.

  • Enumerates other assemblies on which the assembly depends.

  • Provides a level of indirection between consumers of the assembly and the assembly'simplementation details.

  • Renders the assembly self-describing.

如果您需要更改与特定程序集关联的元数据,您可以从代码中添加和更改程序集 list 的某些方面。程序集 list 可能存储为它自己的物理文件,但它仍被视为程序集的一部分。

3 -- 程序集由 CIL 代码、描述 CIL 代码定义的类型的元数据、程序集 list (描述程序集的元数据)和所需的静态图像等其他资源组成由大会。因此,程序集 list 和元数据一样只是程序集的一部分。

4 -- 差不多。 程序集 = MSIL 代码 + 程序集 list + 类型元数据 + 资源。

程序集可以编译成 .EXE 或 .DLL 文件,但也可以由多个文件组成。

关于c# - 程序集 + 元数据 + 程序集 list + MSIL 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15498818/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com