Click here to Skip to main content
15,879,535 members
Home / Discussions / C#
   

C#

 
AnswerRe: Is this an OOP Programme? Pin
nstk12-Jun-12 8:34
nstk12-Jun-12 8:34 
GeneralRe: Is this an OOP Programme? Pin
harold aptroot12-Jun-12 8:48
harold aptroot12-Jun-12 8:48 
GeneralRe: Is this an OOP Programme? Pin
jschell12-Jun-12 9:13
jschell12-Jun-12 9:13 
GeneralC# Pin
Mahendra Kumar11-Jun-12 21:05
Mahendra Kumar11-Jun-12 21:05 
AnswerRe: C# Pin
OriginalGriff11-Jun-12 21:24
mveOriginalGriff11-Jun-12 21:24 
GeneralRe: C# Pin
Pete O'Hanlon11-Jun-12 21:34
mvePete O'Hanlon11-Jun-12 21:34 
AnswerRe: C# Pin
Abhinav S11-Jun-12 23:26
Abhinav S11-Jun-12 23:26 
QuestionHow to remove null value from Lambda expression or Array Pin
Member 871482911-Jun-12 9:26
Member 871482911-Jun-12 9:26 
Here is my code:

//Line below shows an email msg obj with To segment being an array (could have null to x number of receipients/emails):

emailMessage.EmailParamHeaders.To

//Below is creation of mail message obj:
MailMessage m = new MailMessage();

//Line blow is adding each To email address to the "m" object
emailMessage.EmailParamHeaders.To.ToArray().ToList().ForEach(x => m.To.Add(x));

How can I only add the elements of the array "To" where value is not null?

Thank you in advance.
AnswerRe: How to remove null value from Lambda expression or Array Pin
kevinnicol11-Jun-12 10:04
kevinnicol11-Jun-12 10:04 
GeneralRe: How to remove null value from Lambda expression or Array Pin
Member 871482911-Jun-12 10:48
Member 871482911-Jun-12 10:48 
GeneralRe: How to remove null value from Lambda expression or Array Pin
Pete O'Hanlon11-Jun-12 12:05
mvePete O'Hanlon11-Jun-12 12:05 
QuestionC# 2010 edit Pin
sc steinhayse11-Jun-12 6:58
sc steinhayse11-Jun-12 6:58 
AnswerRe: C# 2010 edit Pin
Dave Kreskowiak11-Jun-12 7:12
mveDave Kreskowiak11-Jun-12 7:12 
AnswerRe: C# 2010 edit Pin
OriginalGriff11-Jun-12 8:31
mveOriginalGriff11-Jun-12 8:31 
QuestionDesign surface inside other design surface Pin
redhatee200611-Jun-12 3:42
redhatee200611-Jun-12 3:42 
QuestionAm I doing this right..... Pin
glennPattonWork311-Jun-12 2:41
professionalglennPattonWork311-Jun-12 2:41 
AnswerRe: Am I doing this right..... Pin
PIEBALDconsult11-Jun-12 3:20
mvePIEBALDconsult11-Jun-12 3:20 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 3:31
professionalglennPattonWork311-Jun-12 3:31 
GeneralRe: Am I doing this right..... Pin
PIEBALDconsult11-Jun-12 4:12
mvePIEBALDconsult11-Jun-12 4:12 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 4:23
professionalglennPattonWork311-Jun-12 4:23 
AnswerMessage Removed Pin
11-Jun-12 3:45
professionalN_tro_P11-Jun-12 3:45 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 3:49
professionalglennPattonWork311-Jun-12 3:49 
GeneralMessage Removed Pin
11-Jun-12 4:18
professionalN_tro_P11-Jun-12 4:18 
GeneralRe: Am I doing this right..... Pin
glennPattonWork311-Jun-12 4:29
professionalglennPattonWork311-Jun-12 4:29 
GeneralMessage Removed Pin
11-Jun-12 4:33
professionalN_tro_P11-Jun-12 4:33 

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.