I created my own class library and I have create()
method like this:
public int create()
{
try
{
if(path!=null){
//do somethings
}
else{
throw new ArgumentNullException("path cannot be null ro empty", "path");
}
catch{
throw;
}
return 0;
}
}
In another project, I add my class library DLL and when I use my library method and because of something for example path=null
my method thrown an exception and I get that in line that I wrote throw
inside the catch...
I don't want that,how can I get error in line that I call create()
method in my project
Thank you
SORRY I DONT KNOW ENGLISH VERY WELL so i try again to say my mean I try to create class library and I want to get it to some one else to use, I want when exception in my create() method thrown visual studio highlight the line that create method was called, but it open my dll and go to create method and highlight the line that I wrote throw;... how can I solve it?
....................................................................................
finally I found the answer,see this link: Hiding code from a DLL while debugging