__file__ and __line__

From: Marco van Nieuwenhoven (Mvnieuw_at_community.nospam)
Date: 05/03/05


Date: Tue, 3 May 2005 00:36:29 -0700

Hi all,

I have a question how to replace the 'oldfashioned' __file__ and __line__ in
C#. I have looked at StackTrace.GetFileName and GetFileLineNumbet but then I
need to deliver the .pdb files with the assemblies. I dont want to expose any
debuginfo to the customer for security reasons. Anyone?

Why did I place this in the security theead? Because the background not to
use StackTrace is for security reasons.

Best regards,
Marco van Nieuwenhoven.



Relevant Pages