什么是"强名称"在.NET?名称、QUOT、NET

2023-09-03 10:49:50 作者:生活就要屁颠屁颠的过

可能重复:   What强命名以及如何强名称的二进制?

其实,我昨天参加了一个intrview..in,他们问1个问题有关强name..I不能能猜到这是什么?.PLS解释有关this..thanks。

Actually, yesterday I attended an intrview..in that they asked 1 question about strong name..I can't able to guess what it is?.pls explain about this..thanks.

推荐答案

从 MSDN :

一个强大的名称由组件的身份 - 其简单的文本名称,版本号和区域性信息(如果有的话) - 加一个公钥和数字签名。

A strong name consists of the assembly's identity — its simple text name, version number, and culture information (if provided) — plus a public key and a digital signature.

您可以使用强命名,以确保当您加载DLL你得到正是你期待的DLL,而不是碰巧同名其他DLL。

You can use strong naming to ensure that when you load a DLL you get exactly the DLL you were expecting and not some other DLL that happens to have the same name.

 
精彩推荐
图片推荐