到底什么是模块?一个模块,类和函数之间的区别是什么?我如何可以访问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中的模块?
发布评论