Click here to Skip to main content
15,894,907 members
Home / Discussions / C#
   

C#

 
AnswerRe: what's mail Pin
Paul Conrad8-Jul-08 15:45
professionalPaul Conrad8-Jul-08 15:45 
Questionhow to asterisk in datagrid Pin
netJP12L8-Jul-08 7:35
netJP12L8-Jul-08 7:35 
AnswerRe: how to asterisk in datagrid Pin
led mike8-Jul-08 8:53
led mike8-Jul-08 8:53 
AnswerRe: how to asterisk in datagrid Pin
PIEBALDconsult8-Jul-08 9:16
mvePIEBALDconsult8-Jul-08 9:16 
QuestionAdding a DBNull value as a parameter to a Int32 database field. Pin
Steve Holdorf8-Jul-08 7:01
Steve Holdorf8-Jul-08 7:01 
AnswerRe: Adding a DBNull value as a parameter to a Int32 database field. Pin
PIEBALDconsult8-Jul-08 7:18
mvePIEBALDconsult8-Jul-08 7:18 
AnswerRe: Adding a DBNull value as a parameter to a Int32 database field. Pin
Steve Holdorf8-Jul-08 7:21
Steve Holdorf8-Jul-08 7:21 
QuestionList of built-in constants? Pin
PIEBALDconsult8-Jul-08 6:12
mvePIEBALDconsult8-Jul-08 6:12 
It occurs to me that for a library that supports .net 2 to include support for Extension Methods when compiled with later versions, I should use something like:

public static SomeType
SomeMethod
(
# if SomeConstant
    this
# endif
    SomeType Param
)
{
...
}


But is there a built-in constant to do that? I could easily define one myself, but it wouldn't be standard.

For command-line builds I can easily add a define to C:\WINDOWS\Microsoft.NET\Framework\v3.5\csc.rsp,
but that doesn't help with Visual Studio builds. I can add the define to the project properties, but I'd have to add it to each project that might contain Extension Methods, and remove it if I have to switch the target framework back to 2 (for whatever reason).

Does anyone else have a way of dealing with this issue?
Is there simply a better/more-standard way of doing this already?
AnswerRe: List of built-in constants? Pin
Scott Dorman8-Jul-08 13:19
professionalScott Dorman8-Jul-08 13:19 
GeneralRe: List of built-in constants? Pin
PIEBALDconsult8-Jul-08 14:59
mvePIEBALDconsult8-Jul-08 14:59 
GeneralRe: List of built-in constants? Pin
Scott Dorman8-Jul-08 16:11
professionalScott Dorman8-Jul-08 16:11 
GeneralRe: List of built-in constants? Pin
PIEBALDconsult8-Jul-08 18:01
mvePIEBALDconsult8-Jul-08 18:01 
GeneralRe: List of built-in constants? Pin
Scott Dorman9-Jul-08 2:50
professionalScott Dorman9-Jul-08 2:50 
GeneralRe: List of built-in constants? Pin
leppie8-Jul-08 20:59
leppie8-Jul-08 20:59 
GeneralRe: List of built-in constants? Pin
PIEBALDconsult9-Jul-08 5:21
mvePIEBALDconsult9-Jul-08 5:21 
GeneralRe: List of built-in constants? Pin
PIEBALDconsult8-Jul-08 15:16
mvePIEBALDconsult8-Jul-08 15:16 
GeneralRe: List of built-in constants? Pin
Scott Dorman8-Jul-08 16:12
professionalScott Dorman8-Jul-08 16:12 
QuestionException When Streaming Content Over localhost Pin
#realJSOP8-Jul-08 6:07
mve#realJSOP8-Jul-08 6:07 
GeneralRe: Exception When Streaming Content Over localhost Pin
Rutvik Dave8-Jul-08 8:21
professionalRutvik Dave8-Jul-08 8:21 
GeneralRe: Exception When Streaming Content Over localhost Pin
#realJSOP8-Jul-08 11:02
mve#realJSOP8-Jul-08 11:02 
AnswerRe: Exception When Streaming Content Over localhost Pin
led mike8-Jul-08 8:54
led mike8-Jul-08 8:54 
AnswerRe: Exception When Streaming Content Over localhost Pin
leppie8-Jul-08 21:05
leppie8-Jul-08 21:05 
GeneralRe: Exception When Streaming Content Over localhost Pin
#realJSOP8-Jul-08 23:35
mve#realJSOP8-Jul-08 23:35 
GeneralRe: Exception When Streaming Content Over localhost Pin
leppie9-Jul-08 1:35
leppie9-Jul-08 1:35 
GeneralRe: Exception When Streaming Content Over localhost Pin
#realJSOP9-Jul-08 9:19
mve#realJSOP9-Jul-08 9:19 

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.