المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Exception thrown in designer



C# Programming
06-18-2009, 03:30 PM
Is there a way to prevent the VS designer to run a specific method? E.g.

[Conditional("DEBUG")]
[DebuggerStepThrough]
public void SomeMethod()
{
}

isn't run in release code. Can I write something similar for the designer?

Why is it drug addicts and computer afficionados are both called users?
--Clifford Stoll