Click here to Skip to main content
15,794,377 members
Home / Discussions / C#
   

C#

 
AnswerRe: Reference Types v. Value Types Pin
BillWoodruff31-Mar-20 13:31
professionalBillWoodruff31-Mar-20 13:31 
GeneralRe: Reference Types v. Value Types Pin
Richard Andrew x6431-Mar-20 14:38
professionalRichard Andrew x6431-Mar-20 14:38 
GeneralRe: Reference Types v. Value Types Pin
BillWoodruff31-Mar-20 19:38
professionalBillWoodruff31-Mar-20 19:38 
AnswerRe: Reference Types v. Value Types Pin
F-ES Sitecore1-Apr-20 2:19
professionalF-ES Sitecore1-Apr-20 2:19 
GeneralRe: Reference Types v. Value Types Pin
Richard Deeming1-Apr-20 3:20
mveRichard Deeming1-Apr-20 3:20 
GeneralRe: Reference Types v. Value Types Pin
F-ES Sitecore1-Apr-20 3:38
professionalF-ES Sitecore1-Apr-20 3:38 
QuestionOverloaded Methods with Generics Pin
#realJSOP30-Mar-20 6:52
mve#realJSOP30-Mar-20 6:52 
AnswerRe: Overloaded Methods with Generics Pin
OriginalGriff30-Mar-20 7:34
mvaOriginalGriff30-Mar-20 7:34 
Not that I know of - although you can add constraints to a generic method, there is no way to say "where T : !IEnumerable" unfortunatly.

You could check the type in a single method and route it to one of two private methods?
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
AntiTwitter: @DalekDave is now a follower!

GeneralRe: Overloaded Methods with Generics Pin
#realJSOP30-Mar-20 7:50
mve#realJSOP30-Mar-20 7:50 
GeneralRe: Overloaded Methods with Generics Pin
OriginalGriff30-Mar-20 9:28
mvaOriginalGriff30-Mar-20 9:28 
GeneralRe: Overloaded Methods with Generics Pin
#realJSOP31-Mar-20 1:21
mve#realJSOP31-Mar-20 1:21 
AnswerRe: Overloaded Methods with Generics Pin
BillWoodruff30-Mar-20 17:33
professionalBillWoodruff30-Mar-20 17:33 
GeneralRe: Overloaded Methods with Generics Pin
#realJSOP31-Mar-20 1:18
mve#realJSOP31-Mar-20 1:18 
GeneralRe: Overloaded Methods with Generics Pin
BillWoodruff31-Mar-20 6:17
professionalBillWoodruff31-Mar-20 6:17 
AnswerRe: Overloaded Methods with Generics Pin
Richard Deeming31-Mar-20 2:26
mveRichard Deeming31-Mar-20 2:26 
GeneralRe: Overloaded Methods with Generics Pin
BillWoodruff31-Mar-20 6:32
professionalBillWoodruff31-Mar-20 6:32 
GeneralRe: Overloaded Methods with Generics Pin
Richard Deeming31-Mar-20 9:51
mveRichard Deeming31-Mar-20 9:51 
GeneralRe: Overloaded Methods with Generics Pin
BillWoodruff31-Mar-20 12:49
professionalBillWoodruff31-Mar-20 12:49 
GeneralRe: Overloaded Methods with Generics Pin
Richard Andrew x6431-Mar-20 14:57
professionalRichard Andrew x6431-Mar-20 14:57 
GeneralRe: Overloaded Methods with Generics Pin
Richard Deeming1-Apr-20 1:04
mveRichard Deeming1-Apr-20 1:04 
GeneralRe: Overloaded Methods with Generics Pin
BillWoodruff1-Apr-20 3:07
professionalBillWoodruff1-Apr-20 3:07 
GeneralRe: Overloaded Methods with Generics Pin
Richard Deeming1-Apr-20 3:13
mveRichard Deeming1-Apr-20 3:13 
GeneralRe: Overloaded Methods with Generics Pin
Richard Deeming1-Apr-20 1:15
mveRichard Deeming1-Apr-20 1:15 
GeneralRe: Overloaded Methods with Generics Pin
#realJSOP1-Apr-20 0:26
mve#realJSOP1-Apr-20 0:26 
AnswerRe: Overloaded Methods with Generics Pin
James Curran7-Apr-20 5:48
James Curran7-Apr-20 5:48 

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.