6 Topics

Member Avatar for
Member Avatar for Suzie999

I have a class which is using IEnumerable and I now need to implement IDisposable class Class1 : IEnumerable<Class12> { ;stuff } How can I do that? My first thought was class Class1 : IEnumerable<Class12> : IDisposable { ;stuff } Which I obviously cannot do. (edit) Sorry, I believe it's …

0
148
Member Avatar for tanatos.daniel

I would like to do something like this: comboBox6.Items.AddRange(new IEnumerable<int> { Enumerable.Range(1,8).ToArray() } ); (add numbers 1 to 8 to ComboBox Items using an IEnumerable object), but i can't figure out how. Thanks.

Member Avatar for castajiz_2
0
334
Member Avatar for C#Jonathan

Hi, as explained in the title I'm having a problem storing data to an array of IEnumerables: The source code is as follows:- [CODE] internal static IEnumerable<ReportDriverMovements> CreateReportDriverMovements(IEnumerable<DataScansTran> iEnumDST ) { List<ReportDriverMovements> iEnumReportDriverMovements = new List<ReportDriverMovements>(); st2DataContext dc = new st2DataContext(); try { //Get lists of individual driver movements by …

Member Avatar for Momerath
0
149
Member Avatar for Momerath

Sometimes we need to generate sequence and perform some process on the results. This usually results in some code like this (We'll be using the [URL="http://en.wikipedia.org/wiki/Fibonacci_number"]Fibonacci sequence[/URL] in these examples): [code]void MyMethod() { // What we want to do is output to the screen the first 10 Fibonacci numbers // …

Member Avatar for Momerath
2
626
Member Avatar for =OTS=G-Man

Hello everyone, I am working on a C# app that uses the YouTube .NET API but have come up with an issue, and I'm not sure if its the .NET Wrapper or just something I'm Doing. Ok heres the problem, I request the list of videos the logged in user …

Member Avatar for =OTS=G-Man
0
548
Member Avatar for PierlucSS

I know that technically, an Interface is used for reading and not writting or editing however, I want to add an add and addrange function to the following class, here is what I currently have which is not working [code] public class HrefCollection : IEnumerable<Href> { private IEnumerable<Href> hrefs; public …

Member Avatar for PierlucSS
1
236

The End.