Click here to Skip to main content
       

C#

 
AnswerRe: C# progam call second C# program PinmvpRichard MacCutchan10-Oct-12 21:48 
AnswerRe: C# progam call second C# program PinprotectorPete O'Hanlon10-Oct-12 22:21 
QuestionCitrix Session PinmemberArun Philip Reynolds10-Oct-12 8:30 
AnswerRe: Citrix Session PinmemberEddy Vluggen10-Oct-12 23:57 
QuestionEnumerate through the values of a enum PinmemberSentenryu10-Oct-12 7:38 
AnswerRe: Enumerate through the values of a enum PinmvpDave Kreskowiak10-Oct-12 8:01 
GeneralRe: Enumerate through the values of a enum PinmemberSentenryu10-Oct-12 8:18 
GeneralRe: Enumerate through the values of a enum PinmvpDave Kreskowiak10-Oct-12 8:29 
Sentenryu wrote:
the only thing i don't understand is why i can't call the Select method directly
on the return of Enum.GetValues(), maybe because Array
implements the non-generic IEnumerable interface?

 
LINQ works on the IQueryable interface, which array's don't support.
 
Arrays support the following interfaces:
ICloneable, IList, ICollection, IEnumerable, IStructuralComparable and IStructuralEquatable
 
The .Select extension works on any IEnumerable, including arrays, so I think your .Select example is a bit flawed. I don't know what you're doing, but...

GeneralRe: Enumerate through the values of a enum PinmemberSentenryu10-Oct-12 8:55 
GeneralRe: Enumerate through the values of a enum PinmemberMr. Tapan Kumar10-Oct-12 9:47 
GeneralRe: Enumerate through the values of a enum PinmemberJ4amieC10-Oct-12 21:26 
GeneralRe: Enumerate through the values of a enum PinmemberJ4amieC10-Oct-12 21:25 
GeneralRe: Enumerate through the values of a enum PinmvpDave Kreskowiak10-Oct-12 23:52 
AnswerRe: Enumerate through the values of a enum PinmemberJ4amieC10-Oct-12 21:20 
GeneralRe: Enumerate through the values of a enum PinmemberSentenryu11-Oct-12 0:07 
QuestionProviderUserKey error Pinmembersaiprakash031510-Oct-12 6:15 
AnswerRe: ProviderUserKey error PinmvpOriginalGriff10-Oct-12 8:36 
GeneralRe: ProviderUserKey error Pinmembersaiprakash031510-Oct-12 14:14 
QuestionC# PinmemberJaleel Ahmed10-Oct-12 6:11 
AnswerRe: C# PinmemberPaul Conrad10-Oct-12 7:31 
AnswerRe: C# PinmvpAbhinav S10-Oct-12 16:08 
AnswerRe: C# PinmemberKiranKumar Roy14-Oct-12 1:36 
QuestionProgressive tax calculator in C# Pinmembercyberhopper10-Oct-12 2:26 
AnswerRe: Progressive tax calculator in C# PinprotectorPete O'Hanlon10-Oct-12 3:05 
GeneralRe: Progressive tax calculator in C# PinmemberPaul Conrad10-Oct-12 7:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.140922.1 | Last Updated 22 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid