No announcements
Found 3734467 threads
-
2 Votes
IList to IEnumerable<Object>
The Cast<T>() method works well for this also: public IEnumerable<T> GetServices<T>() { return _container.GetAllInstances(serviceType) ...Answered | 4 Replies | 16902 Views | Created by MDMoura - Sunday, October 31, 2010 12:42 AM | Last reply by dpuza - Wednesday, March 16, 2016 1:30 PM -
0 Votes
IEnumerable or IList or IQueryable
If you have any feedback, please tell us.Answered | 2 Replies | 6269 Views | Created by sas79gi - Wednesday, June 2, 2010 1:54 AM | Last reply by Michael Sun [MSFT] - Friday, June 4, 2010 1:27 AM -
3 Votes
IList as IList returns null
wait, wait, wait IList is well and not deprecated at all IEnumerable was the first choice for Linq as it's the ...Answered | 5 Replies | 4954 Views | Created by Blech23 - Wednesday, April 25, 2012 9:17 PM | Last reply by Raffaele Rialdi [MVP] - Thursday, April 26, 2012 10:52 AM -
0 Votes
using Extension methods on an IList
You are mixing up IQueryable with IEnumerable.Answered | 4 Replies | 7986 Views | Created by SoulSoniC - Thursday, July 30, 2009 8:49 PM | Last reply by SoulSoniC - Friday, August 7, 2009 7:44 PM -
4 Votes
why assigning values to IList<T> or IEnumerator<t> directly.
IList<t> or dictionary object etc.Answered | 9 Replies | 4571 Views | Created by aammir - Monday, September 16, 2013 8:50 PM | Last reply by aammir - Saturday, September 21, 2013 3:56 AM -
0 Votes
Objects - IEnumerator - IEnumerable
For explanation, please go to MSDN documentation and see how implementation works, https://msdn.microsoft.com/en-us/library/44a9ty12.aspx.Answered | 7 Replies | 883 Views | Created by Christose88 - Wednesday, October 12, 2016 4:39 PM | Last reply by Afzaal Ahmad Zeeshan (Shani) - Saturday, October 15, 2016 6:44 PM -
3 Votes
When to Use IEnumerable
A collection that implements IEnumerable can be used with a foreach statement.Answered | 10 Replies | 3027 Views | Created by chandana30 - Saturday, September 22, 2012 9:38 AM | Last reply by chandana30 - Tuesday, September 25, 2012 4:35 AM -
0 Votes
Convert an IList to ObservableCollection?
Essentially, the idea of using an untyped Ilist as an itemssource is inherently faulted.Answered | 9 Replies | 16020 Views | Created by Kofoed - Monday, April 19, 2010 10:44 PM | Last reply by DKofoed - Tuesday, April 20, 2010 8:49 PM -
0 Votes
EF repositrory IEnumerable<T>
I don't know how large your collection will be, but I think you should optimize your Linq query to return a minimum result required.Answered | 4 Replies | 3695 Views | Created by HeartKiller - Friday, August 20, 2010 10:28 AM | Last reply by Patriek van Dorp - Monday, August 23, 2010 8:21 AM -
15 Votes
C# List vs IList
Not only the methods by interface IList , also expose the methods by ICollection<T>, IEnumerable<T>, IEnumerableAnswered | 5 Replies | 61271 Views | Created by recherche - Wednesday, January 23, 2013 5:32 PM | Last reply by manojweerasooriya - Friday, December 19, 2014 4:57 AM -
0 Votes
iEnumerator
So we can use foreach the class.Answered | 3 Replies | 3270 Views | Created by as7685 - Tuesday, September 15, 2009 12:54 PM | Last reply by Jiyuan - Tuesday, September 15, 2009 2:55 PM -
2 Votes
How to add A in IList<A> into IList<B>?
IList addition.Answered | 6 Replies | 3247 Views | Created by Roanoke - Wednesday, March 24, 2010 3:44 PM | Last reply by romelevans - Wednesday, March 24, 2010 8:23 PM -
0 Votes
Add IList to IList
Hi, use Addrange or new List<T>(yourIlist)Answered | 6 Replies | 21683 Views | Created by SomeDeveloperPerson - Wednesday, June 9, 2010 1:05 PM | Last reply by Eyal Solnik - Wednesday, June 9, 2010 11:23 PM -
0 Votes
How to Use IEnumerator with ObservableCollection
To iterate through the ObservableCollection returned by GetBusinessUnits you would write foreach(var unit in BusinessUnitService.GetBusinessUnits()) { // do whatever you ...Answered | 1 Replies | 3310 Views | Created by REvans611 - Wednesday, December 12, 2012 8:32 PM | Last reply by PaulLinton - Wednesday, December 12, 2012 10:24 PM -
2 Votes
IEnumerable<T> or List<T>?
This will let you use List<T> in your data access now (internally), but change it in the future if required to any other class that implements IList<T>.Answered | 4 Replies | 25976 Views | Created by c0pe - Friday, October 1, 2010 6:12 PM | Last reply by c0pe - Monday, October 4, 2010 3:06 PM -
0 Votes
IList<T> vs List
That is especially used to make sure that adding/output of a collection is typesafe.Answered | 3 Replies | 4569 Views | Created by boobyy - Sunday, March 30, 2014 5:10 AM | Last reply by Christopher84 - Sunday, March 30, 2014 2:25 PM -
0 Votes
For use ForEach loop we should implement IEnumerable?
You are actually mixing Int[] with Integer type.Answered | 1 Replies | 248 Views | Created by Arash_89 - Saturday, March 17, 2018 4:14 PM | Last reply by Ehsan Sajjad - Saturday, March 17, 2018 4:31 PM -
0 Votes
How to sort an IList
As a rule you don't use interfaces directly although you can.Answered | 6 Replies | 20039 Views | Created by acfalconhawk - Tuesday, July 29, 2008 7:22 PM | Last reply by David Pokluda - Thursday, July 1, 2010 1:03 AM -
0 Votes
IList<String> to IList<Object>
protected override IList<Role> ResolveCore(IList<String> source) { IList<Role> roles = new ...Answered | 2 Replies | 3928 Views | Created by MDMoura - Friday, May 21, 2010 2:38 PM | Last reply by MDMoura - Friday, May 21, 2010 4:10 PM -
1 Votes
Complex Data Binding doesn't support ILIST<>
I believe the original poster is using objects that only implement IList<T>, i.e.Answered | 5 Replies | 3442 Views | Created by theBrucester - Wednesday, September 23, 2009 2:09 PM | Last reply by Rudedog2 - Wednesday, September 23, 2009 5:04 PM - Items 1 to 20 of 3734467 Next ›
No announcements