gpt4 book ai didi

.net - 如何以编程方式将文件识别为 .NET 程序集?

转载 作者:行者123 更新时间:2023-12-03 03:31:00 26 4
gpt4 key购买 nike

有没有办法轻松找到程序集?

最佳答案

How to programmatically determine if a file is an assembly

Call the GetAssemblyName method, passing the full file path and name of the file you are testing.

If a BadImageFormatException exception is thrown, the file is not an assembly.

http://msdn.microsoft.com/en-us/library/ms173100.aspx

关于.net - 如何以编程方式将文件识别为 .NET 程序集?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1711290/

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