举例:
我写了一个类库,生成了一个DLL。
在WEB网站上引用此DLL,然后我调试,竟然能调试到DLL里面,把类库里的类,全部呈现了出来。
但别人的DLL又不会,请问怎么才能是这DLL在页面调用调试时不呈现出源代码!
我写了一个类库,生成了一个DLL。
在WEB网站上引用此DLL,然后我调试,竟然能调试到DLL里面,把类库里的类,全部呈现了出来。
但别人的DLL又不会,请问怎么才能是这DLL在页面调用调试时不呈现出源代码!
不知道M$怎么想的...
如果是这样,那当然可以调试到DLL里来
using System.Diagnostics;
class Program
{
static void Main(string[] args)
{
// Step into F11 from here
UserCode();// Place break point on this line
NonUserCode();
UserCode();
}
static void UserCode()
{
Console.WriteLine(This is a call from user Code);
}
// Attribute to indicate the Debugger to jump
// over this method
[DebuggerNonUserCode]
static void NonUserCode()
{
Console.WriteLine(This is a call fron Non User Code);
}
}