Click here to Skip to main content
16,013,440 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionWorking with null database values - Object vs SqlTypes vs Nullable(Of T) Pin
Anthony Ford23-Jun-06 7:04
Anthony Ford23-Jun-06 7:04 
AnswerRe: Working with null database values - Object vs SqlTypes vs Nullable(Of T) Pin
Guffa23-Jun-06 11:59
Guffa23-Jun-06 11:59 
QuestionOn TreeviewControl.nodes.remove(node) other nodes are disapearing Pin
Desert Star23-Jun-06 6:35
Desert Star23-Jun-06 6:35 
QuestionMessageQueues, PocketPC 2003 and HTTP Transport... possible? Pin
displaced8023-Jun-06 1:37
displaced8023-Jun-06 1:37 
QuestionSo how do I specify debug only in .NET/C# Pin
nicknotyet22-Jun-06 10:23
nicknotyet22-Jun-06 10:23 
AnswerRe: So how do I specify debug only in .NET/C# Pin
Dustin Metzgar22-Jun-06 10:35
Dustin Metzgar22-Jun-06 10:35 
GeneralRe: So how do I specify debug only in .NET/C# Pin
nicknotyet22-Jun-06 11:21
nicknotyet22-Jun-06 11:21 
AnswerRe: So how do I specify debug only in .NET/C# Pin
Guffa22-Jun-06 10:42
Guffa22-Jun-06 10:42 
Like this:
#if DEBUG
    Console.WriteLine("Debug version");
#endif

From what I can see in MSDN, the calls to Debug methods are not included in the release build (while calls to Trace methods are):

"If you use methods in the Debug class to print debugging information and check your logic with assertions, you can make your code more robust without impacting the performance and code size of your shipping product.

In Visual Studio 2005 projects, creating a debug build enables Debug. For information on how to disable Debug, see the Visual Studio 2005 documentation.

In contrast, in Visual Studio 2005 projects, Trace is enabled by default for both release and debug builds, so code is generated for all trace methods in both release and debug builds. Therefore, you can use Trace to instrument release builds."


---
b { font-weight: normal; }

AnswerRe: So how do I specify debug only in .NET/C# Pin
Josh Smith23-Jun-06 3:55
Josh Smith23-Jun-06 3:55 
GeneralRe: So how do I specify debug only in .NET/C# Pin
Dustin Metzgar23-Jun-06 4:02
Dustin Metzgar23-Jun-06 4:02 
GeneralRe: So how do I specify debug only in .NET/C# Pin
Josh Smith23-Jun-06 4:08
Josh Smith23-Jun-06 4:08 
Questionhow to write the volume Pin
wanda197222-Jun-06 9:11
wanda197222-Jun-06 9:11 
GeneralRe: how to write the volume Pin
Guffa22-Jun-06 10:50
Guffa22-Jun-06 10:50 
QuestionTargetInvocationException Pin
kreaThor22-Jun-06 8:02
kreaThor22-Jun-06 8:02 
AnswerRe: TargetInvocationException Pin
kreaThor22-Jun-06 9:08
kreaThor22-Jun-06 9:08 
GeneralRe: TargetInvocationException Pin
Josh Smith23-Jun-06 8:22
Josh Smith23-Jun-06 8:22 
Questionhow to create popup menu in IE Pin
LakshmiPathiRao22-Jun-06 2:04
LakshmiPathiRao22-Jun-06 2:04 
AnswerRe: how to create popup menu in IE Pin
Aurelius166427-Jun-06 11:10
Aurelius166427-Jun-06 11:10 
QuestionScreen Scraping Windows App Pin
mr_1234522-Jun-06 1:30
mr_1234522-Jun-06 1:30 
QuestionTextBox Methods In VC.Net Pin
Nagaraju_Focus22-Jun-06 0:55
Nagaraju_Focus22-Jun-06 0:55 
AnswerRe: TextBox Methods In VC.Net Pin
MatthewAnderson26-Jun-06 3:55
MatthewAnderson26-Jun-06 3:55 
Questionconverting exe to Web Application Pin
Shailesh Ha22-Jun-06 0:20
Shailesh Ha22-Jun-06 0:20 
AnswerRe: converting exe to Web Application Pin
Dave Kreskowiak22-Jun-06 1:28
mveDave Kreskowiak22-Jun-06 1:28 
QuestionWhat is Serialize and MarshalByRef ? Pin
webC#21-Jun-06 20:02
webC#21-Jun-06 20:02 
AnswerRe: What is Serialize and MarshalByRef ? Pin
Josh Smith23-Jun-06 4:24
Josh Smith23-Jun-06 4:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.