是什么在.NET中的模块? [英] What is a module in .NET?

查看:324
本文介绍了是什么在.NET中的模块?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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#.net?

更新: 我问这个因为 - 不使用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中的模块?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆