Click here to Skip to main content
15,918,485 members
Home / Discussions / C#
   

C#

 
GeneralRe: how to add localdb in console apps using vs2013 Pin
Eddy Vluggen6-Sep-16 5:20
professionalEddy Vluggen6-Sep-16 5:20 
GeneralRe: how to add localdb in console apps using vs2013 Pin
ZurdoDev6-Sep-16 5:53
professionalZurdoDev6-Sep-16 5:53 
Questionreceive values from a listbox Pin
eli stein2005-Sep-16 6:05
eli stein2005-Sep-16 6:05 
AnswerRe: receive values from a listbox Pin
Dave Kreskowiak5-Sep-16 6:50
mveDave Kreskowiak5-Sep-16 6:50 
GeneralRe: receive values from a listbox Pin
eli stein2005-Sep-16 7:25
eli stein2005-Sep-16 7:25 
AnswerRe: receive values from a listbox Pin
Maciej Los5-Sep-16 19:41
mveMaciej Los5-Sep-16 19:41 
SuggestionRe: receive values from a listbox Pin
Richard Deeming6-Sep-16 1:58
mveRichard Deeming6-Sep-16 1:58 
GeneralRe: receive values from a listbox Pin
Maciej Los6-Sep-16 3:36
mveMaciej Los6-Sep-16 3:36 
Richard, i agree with you, but i feel in duty to explain why a OfType<string>() has been used in my code.
Well, OP wrote:
Quote:
The following code does the job, but instead of the items, i get "System.Data.DataRowView" over and over.

You're suggesting to use Cast<object>(), because string.Join() method is able to convert object to string.
The differences between OfType() and Cast() are well known. Using OfCast() is always safer way. That's way that method is much slower than Cast().

Cheers!
Maciej

Using Cast Or OfType Methods[^]
QuestionC# Pin
Member 123725154-Sep-16 8:25
Member 123725154-Sep-16 8:25 
AnswerRe: C# Pin
Pete O'Hanlon4-Sep-16 10:09
mvePete O'Hanlon4-Sep-16 10:09 
AnswerRe: C# Pin
Dave Kreskowiak4-Sep-16 12:34
mveDave Kreskowiak4-Sep-16 12:34 
GeneralRe: C# Pin
Richard Deeming5-Sep-16 2:12
mveRichard Deeming5-Sep-16 2:12 
AnswerRe: C# Pin
OriginalGriff4-Sep-16 19:57
mveOriginalGriff4-Sep-16 19:57 
AnswerGreat subject Pin
Luc Pattyn5-Sep-16 3:42
sitebuilderLuc Pattyn5-Sep-16 3:42 
GeneralRe: Great subject Pin
Pete O'Hanlon5-Sep-16 4:06
mvePete O'Hanlon5-Sep-16 4:06 
AnswerRe: C# Pin
#realJSOP6-Sep-16 1:36
professional#realJSOP6-Sep-16 1:36 
Questionjson attribute for ienumerable items Pin
Raghavendra.Kodimala2-Sep-16 23:05
professionalRaghavendra.Kodimala2-Sep-16 23:05 
AnswerRe: json attribute for ienumerable items Pin
Richard MacCutchan3-Sep-16 0:33
mveRichard MacCutchan3-Sep-16 0:33 
AnswerRe: json attribute for ienumerable items Pin
Richard Deeming5-Sep-16 2:11
mveRichard Deeming5-Sep-16 2:11 
Questionshows the insert and read only mode of form view main page dynamically doesn`t work in insert Pin
Member 126153702-Sep-16 20:28
Member 126153702-Sep-16 20:28 
SuggestionRe: shows the insert and read only mode of form view main page dynamically doesn`t work in insert Pin
Richard Deeming5-Sep-16 2:10
mveRichard Deeming5-Sep-16 2:10 
QuestionHow to Add Assembly Reference in VS 2012 Pin
Member 122888402-Sep-16 16:06
Member 122888402-Sep-16 16:06 
AnswerRe: How to Add Assembly Reference in VS 2012 Pin
Richard Andrew x642-Sep-16 18:10
professionalRichard Andrew x642-Sep-16 18:10 
GeneralMessage Closed Pin
2-Sep-16 19:31
Member 122888402-Sep-16 19:31 
GeneralRe: How to Add Assembly Reference in VS 2012 Pin
Richard Andrew x643-Sep-16 3:33
professionalRichard Andrew x643-Sep-16 3: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.