Click here to Skip to main content
15,885,757 members
Home / Discussions / C#
   

C#

 
GeneralRe: Complexity Pin
Gilbert Consellado17-Jul-15 2:15
professionalGilbert Consellado17-Jul-15 2:15 
AnswerRe: Complexity PinPopular
Pete O'Hanlon17-Jul-15 1:07
mvePete O'Hanlon17-Jul-15 1:07 
GeneralRe: Complexity Pin
Gilbert Consellado17-Jul-15 2:17
professionalGilbert Consellado17-Jul-15 2:17 
GeneralRe: Complexity Pin
Gilbert Consellado17-Jul-15 5:18
professionalGilbert Consellado17-Jul-15 5:18 
AnswerRe: Complexity PinPopular
Alan N17-Jul-15 4:37
Alan N17-Jul-15 4:37 
GeneralRe: Complexity Pin
Gilbert Consellado17-Jul-15 5:22
professionalGilbert Consellado17-Jul-15 5:22 
QuestionPass Anonymous Type To Worker Pin
Kevin Marois16-Jul-15 12:58
professionalKevin Marois16-Jul-15 12:58 
AnswerRe: Pass Anonymous Type To Worker Pin
Dave Kreskowiak16-Jul-15 14:49
mveDave Kreskowiak16-Jul-15 14:49 
I really hate using anonymous types because they just make your code harder to debug and understand. I strongly suggest replacing the anonymous type with an actual class. I see no reason why you need to use a anonymous type here.

Anonymous types are good for use inside the method where it's defined, not really for passing around to other methods.

The reason being is that you have to define your anonymous type all over again just so you can cast the value back to that type. That's doubling your work and introducing another opportunity to introduce bugs into your code. This is especially true in this case because if you change the type definition, you have to do it in multiple places. YUK!
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: Pass Anonymous Type To Worker Pin
Kevin Marois16-Jul-15 14:52
professionalKevin Marois16-Jul-15 14:52 
AnswerRe: Pass Anonymous Type To Worker Pin
F-ES Sitecore16-Jul-15 21:45
professionalF-ES Sitecore16-Jul-15 21:45 
Questionform 1 and form 2 Pin
jamesmc153516-Jul-15 4:08
jamesmc153516-Jul-15 4:08 
AnswerRe: form 1 and form 2 Pin
Wes Aday16-Jul-15 4:26
professionalWes Aday16-Jul-15 4:26 
Questioni get a error invalid expresion Pin
jamesmc153516-Jul-15 2:57
jamesmc153516-Jul-15 2:57 
AnswerRe: i get a error invalid expresion Pin
Richard MacCutchan16-Jul-15 3:02
mveRichard MacCutchan16-Jul-15 3:02 
GeneralRe: i get a error invalid expresion Pin
jamesmc153516-Jul-15 3:09
jamesmc153516-Jul-15 3:09 
GeneralRe: i get a error invalid expresion Pin
Richard MacCutchan16-Jul-15 4:54
mveRichard MacCutchan16-Jul-15 4:54 
GeneralRe: i get a error invalid expresion Pin
jamesmc153516-Jul-15 4:56
jamesmc153516-Jul-15 4:56 
GeneralRe: i get a error invalid expresion Pin
Richard MacCutchan16-Jul-15 4:58
mveRichard MacCutchan16-Jul-15 4:58 
GeneralRe: i get a error invalid expresion Pin
jamesmc153516-Jul-15 5:00
jamesmc153516-Jul-15 5:00 
GeneralRe: i get a error invalid expresion Pin
Richard MacCutchan16-Jul-15 5:06
mveRichard MacCutchan16-Jul-15 5:06 
Questionhelp with login Pin
jamesmc153516-Jul-15 2:49
jamesmc153516-Jul-15 2:49 
AnswerRe: help with login Pin
Richard MacCutchan16-Jul-15 2:59
mveRichard MacCutchan16-Jul-15 2:59 
QuestionEnabling and Disabling Speech Recognition using Speech Recognition Pin
Coder199915-Jul-15 6:19
Coder199915-Jul-15 6:19 
AnswerRe: Enabling and Disabling Speech Recognition using Speech Recognition Pin
Richard MacCutchan15-Jul-15 7:00
mveRichard MacCutchan15-Jul-15 7:00 
GeneralRe: Enabling and Disabling Speech Recognition using Speech Recognition Pin
Coder199916-Jul-15 3:13
Coder199916-Jul-15 3:13 

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.