Click here to Skip to main content
15,795,398 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# technology Pin
jschell12-Mar-14 12:17
jschell12-Mar-14 12:17 
Questionintellisense Pin
cdpsource11-Mar-14 3:11
cdpsource11-Mar-14 3:11 
AnswerRe: intellisense Pin
Tom Marvolo Riddle11-Mar-14 3:21
professionalTom Marvolo Riddle11-Mar-14 3:21 
QuestionConcatenating specific properties values of class Pin
nitin_ion11-Mar-14 0:59
nitin_ion11-Mar-14 0:59 
SuggestionRe: Concatenating specific properties values of class Pin
Kornfeld Eliyahu Peter11-Mar-14 1:19
professionalKornfeld Eliyahu Peter11-Mar-14 1:19 
GeneralRe: Concatenating specific properties values of class Pin
nitin_ion11-Mar-14 1:37
nitin_ion11-Mar-14 1:37 
GeneralRe: Concatenating specific properties values of class Pin
Kornfeld Eliyahu Peter11-Mar-14 1:41
professionalKornfeld Eliyahu Peter11-Mar-14 1:41 
GeneralRe: Concatenating specific properties values of class Pin
nitin_ion11-Mar-14 1:48
nitin_ion11-Mar-14 1:48 
I have a need to concat some property values of a class let's say

C#
public class t1
{
public string Name { get; set; }
public string rr { get; set; }
public string ss { get; set; }
public string yy { get; set; }
}



easy way is
var yy = string.Join("", typeof(t1).GetProperties().Select(x => x.GetValue(ttt)));


but then it will have all the properties
i want a way in which i can specify the properties which i want to exclude from concatenating.

one way is i mention all the properties which i want to concat like this
var yy = t1.Name + t1.rr;


but then this is old fashioned and i have a class which has 70+ properties so it is laborious
i want a shortcut.

Hopr i make myself clear
AnswerRe: Concatenating specific properties values of class Pin
Kornfeld Eliyahu Peter11-Mar-14 1:53
professionalKornfeld Eliyahu Peter11-Mar-14 1:53 
GeneralRe: Concatenating specific properties values of class Pin
nitin_ion11-Mar-14 2:24
nitin_ion11-Mar-14 2:24 
GeneralRe: Concatenating specific properties values of class Pin
Kornfeld Eliyahu Peter11-Mar-14 2:35
professionalKornfeld Eliyahu Peter11-Mar-14 2:35 
QuestionC# Win Forms Drag n Drop email to .EML file Pin
Member 875270111-Mar-14 0:29
Member 875270111-Mar-14 0:29 
AnswerRe: C# Win Forms Drag n Drop email to .EML file Pin
Bernhard Hiller11-Mar-14 1:08
Bernhard Hiller11-Mar-14 1:08 
GeneralRe: C# Win Forms Drag n Drop email to .EML file Pin
Member 875270111-Mar-14 1:13
Member 875270111-Mar-14 1:13 
GeneralRe: C# Win Forms Drag n Drop email to .EML file Pin
Bernhard Hiller11-Mar-14 1:31
Bernhard Hiller11-Mar-14 1:31 
GeneralRe: C# Win Forms Drag n Drop email to .EML file Pin
Member 875270111-Mar-14 1:34
Member 875270111-Mar-14 1:34 
QuestionC# Windos app with SQl Issue Pin
manumaxma10-Mar-14 23:32
manumaxma10-Mar-14 23:32 
AnswerRe: C# Windos app with SQl Issue Pin
Eddy Vluggen11-Mar-14 1:59
professionalEddy Vluggen11-Mar-14 1:59 
QuestionDatagridview Timed Output Pin
Su069110-Mar-14 19:25
Su069110-Mar-14 19:25 
AnswerRe: Datagridview Timed Output Pin
OriginalGriff10-Mar-14 23:41
mvaOriginalGriff10-Mar-14 23:41 
AnswerRe: Datagridview Timed Output Pin
Richard MacCutchan10-Mar-14 23:46
mveRichard MacCutchan10-Mar-14 23:46 
QuestionShortest Way to Shuffle Array Pin
computerpublic10-Mar-14 17:23
computerpublic10-Mar-14 17:23 
AnswerRe: Shortest Way to Shuffle Array Pin
BillWoodruff10-Mar-14 23:35
professionalBillWoodruff10-Mar-14 23:35 
GeneralRe: Shortest Way to Shuffle Array Pin
Simon_Whale11-Mar-14 1:00
Simon_Whale11-Mar-14 1:00 
GeneralRe: Shortest Way to Shuffle Array Pin
computerpublic11-Mar-14 7:59
computerpublic11-Mar-14 7:59 

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.