是什么在.NET中的模块?

编程入门 行业动态 更新时间:2024-10-17 23:29:28
本文介绍了是什么在.NET中的模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

到底什么是模块?一个模块,类和函数之间的区别是什么?我如何可以访问C#一个模块?

What exactly is a Module? What is the difference between a module, a class and a function? How can I access a Module in c#?

更新: 我问这个因为 - 不使用code签字,我要计算的只是某些特定的功能的IL code(在运行时)的校验和。

UPDATE: I am asking this because- without using code signing, i want to calculate a checksum of the IL code of only some particular functions (at runtime).

推荐答案

一个模块是code组件内的逻辑集合。你可以有多个模块的组件内,并且每个模块可以用不同的.NET语言(VS,据我所知,不支持创建多模块组件)。

A module is a logical collection of code within an Assembly. You can have multiple modules inside an Assembly, and each module can be written in different .NET languages (VS, as far as I'm aware, doesn't support creation of multi-module assemblies).

程序集包含模块。 模块包含的类。 类包含的功能。

Assemblies contain modules. Modules contain classes. Classes contain functions.

是的,你可以在运行时通过反射访问组件,模块,类,函数,属性,字段等一切。

Yes you can access assemblies, modules, classes, functions, properties, fields etc all via reflection at runtime.

更多推荐

是什么在.NET中的模块?

本文发布于:2023-11-02 14:11:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1552622.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   NET

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!