Click here to Skip to main content
15,922,696 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where am I send a request about C# new language feature Pin
Matt T Heffron27-Mar-14 7:21
professionalMatt T Heffron27-Mar-14 7:21 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon27-Mar-14 11:26
mvePete O'Hanlon27-Mar-14 11:26 
GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova28-Mar-14 0:31
BobJanova28-Mar-14 0:31 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon28-Mar-14 1:27
mvePete O'Hanlon28-Mar-14 1:27 
GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova28-Mar-14 4:33
BobJanova28-Mar-14 4:33 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon28-Mar-14 4:38
mvePete O'Hanlon28-Mar-14 4:38 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 14:07
Higty30-Mar-14 14:07 
Questionis it secure to send windows password via netNamedPipeBinding to WCF service running on windows service? Pin
sudhakarponnusamy@gmail.com25-Mar-14 21:27
sudhakarponnusamy@gmail.com25-Mar-14 21:27 
AnswerRe: is it secure to send windows password via netNamedPipeBinding to WCF service running on windows service? Pin
BobJanova27-Mar-14 6:40
BobJanova27-Mar-14 6:40 
QuestionC#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH25-Mar-14 21:07
professionalAshwiniSH25-Mar-14 21:07 
QuestionRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan25-Mar-14 22:37
mveRichard MacCutchan25-Mar-14 22:37 
AnswerRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH25-Mar-14 23:38
professionalAshwiniSH25-Mar-14 23:38 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan25-Mar-14 23:41
mveRichard MacCutchan25-Mar-14 23:41 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH27-Mar-14 0:20
professionalAshwiniSH27-Mar-14 0:20 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
Richard MacCutchan27-Mar-14 0:22
mveRichard MacCutchan27-Mar-14 0:22 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH27-Mar-14 0:48
professionalAshwiniSH27-Mar-14 0:48 
GeneralRe: C#: Setup Project in VS2010 with Custom actions Pin
AshwiniSH4-Apr-14 0:03
professionalAshwiniSH4-Apr-14 0:03 
QuestionGenerics argument detect a class type Pin
Simon_Whale25-Mar-14 6:10
Simon_Whale25-Mar-14 6:10 
AnswerRe: Generics argument detect a class type Pin
OriginalGriff25-Mar-14 6:16
mveOriginalGriff25-Mar-14 6:16 
GeneralRe: Generics argument detect a class type Pin
Simon_Whale25-Mar-14 6:22
Simon_Whale25-Mar-14 6:22 
GeneralRe: Generics argument detect a class type Pin
OriginalGriff25-Mar-14 6:31
mveOriginalGriff25-Mar-14 6:31 
AnswerRe: Generics argument detect a class type Pin
Pete O'Hanlon25-Mar-14 7:47
mvePete O'Hanlon25-Mar-14 7:47 
GeneralRe: Generics argument detect a class type Pin
Simon_Whale25-Mar-14 9:44
Simon_Whale25-Mar-14 9:44 
GeneralRe: Generics argument detect a class type Pin
Pete O'Hanlon25-Mar-14 20:56
mvePete O'Hanlon25-Mar-14 20:56 
AnswerRe: Generics argument detect a class type Pin
Dave Kreskowiak25-Mar-14 9:07
mveDave Kreskowiak25-Mar-14 9:07 
The problem that I see in what you're doing is that you're checking for the passed in type at run-time. The whole point behind Generics is that you treat the T as a template at compile-time, preventing you from writing invalid code before you even compile it.

Pete's solution takes care of that little problem by limiting what types can be passed in as you're writing the code.

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.