Click here to Skip to main content
15,920,111 members
Home / Discussions / C#
   

C#

 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon27-Mar-14 21:20
mvePete O'Hanlon27-Mar-14 21:20 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 13:47
Higty30-Mar-14 13:47 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon30-Mar-14 20:22
mvePete O'Hanlon30-Mar-14 20:22 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 21:31
Higty30-Mar-14 21:31 
GeneralRe: Where am I send a request about C# new language feature Pin
Pete O'Hanlon30-Mar-14 22:38
mvePete O'Hanlon30-Mar-14 22:38 
GeneralRe: Where am I send a request about C# new language feature Pin
Higty30-Mar-14 23:46
Higty30-Mar-14 23:46 
GeneralRe: Where am I send a request about C# new language feature Pin
BobJanova27-Mar-14 6:36
BobJanova27-Mar-14 6:36 
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 
I have a method that I am exploring that takes in generic parameters.

C#
public void Test<t,x>(t source, x destination) { //code here }


what I am trying to do is determine if x is either a collection or a class anything else should throw an exception.

The collection on I got by using the following

C#
if(destination is ICollection<x>)


But my Googlefu keeps bring me back to the Type class and all I keep using is the IsAnsiClass but this registers true even if I pass an integer variable.

Is there a way to determine if the destination variable is a class?
Every day, thousands of innocent plants are killed by vegetarians.

Help end the violence EAT BACON

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.