Click here to Skip to main content
15,902,777 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
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 
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 
Dustin Metzgar wrote:
1. You can't use an attribute in the middle of a code block for stuff like writing to console only during debug


That's the whole point. The attribute allows you to remove debug-only (or whatever-only) code from your "real" code. Since I started using it, I almost never use preprocessor directives anymore because it is just so much cleaner to factor the test/debug code out.


Dustin Metzgar wrote:
2. VS will automatically hide a section of code depending on what's defined for the current configuration. Does this work with the attribute as well?


No, but if you put all of your Conditional methods in one #region, or in a partial class extension, you'll have the same effect.

Josh
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 
QuestionCan't implement real-world UI using XAML. Pin
nicknotyet21-Jun-06 11:22
nicknotyet21-Jun-06 11:22 
AnswerRe: Can't implement real-world UI using XAML. Pin
Josh Smith22-Jun-06 4:29
Josh Smith22-Jun-06 4:29 
GeneralRe: Can't implement real-world UI using XAML. Pin
nicknotyet22-Jun-06 8:21
nicknotyet22-Jun-06 8:21 

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.