ilist Questions

2

Solved

I need to cast an IList to a Collection (System.Collections.ObjectModel) How do you go about this?
Appenzell asked 4/5, 2010 at 14:11

4

Solved

I have a list of type IList<Effort>. The model Effort contains a float called Amount. I would like to return the sum of Amount for the whole list, in F#. How would this be achieved?
Holmquist asked 3/4, 2010 at 15:19

3

Solved

Im using the .NET framework 1.1 and Im hoping someone could help me implement a dynamic array of objects? A watered-down example of the object I wish use is below. Class CarObj { public string ...
Financier asked 18/3, 2010 at 20:42

6

Solved

Any elegant ways of converting a IList collection to a string of comma separated id's? "1,234,2,324,324,2"
Macaroon asked 7/10, 2009 at 0:54

3

Solved

Update 2011-Jan-06: Believe it or not, I went ahead and incorporated this interface into an open source library I've started, Tao.NET. I wrote a blog post explaining this library's IArray<T>...
Turfy asked 21/1, 2010 at 15:34

1

Solved

Is there a limit of elements that could be stored in a List ? or you can just keeping adding elements untill you are out of memory ?
Option asked 13/11, 2009 at 17:43

2

Solved

When I have entities in my domain with lists of things, should they be exposed as ILists or IEnumerables? E.g. Order has a bunch of OrderLines.
Superhighway asked 18/12, 2008 at 2:17

2

Solved

I seem to be having a problem with checking for list equality. In my case, I have two role objects and I want to see if they are equal. Each role contains a name and a List of permissions. Each per...
Leffler asked 9/9, 2009 at 19:21

1

Solved

I'm in a situation where I just want to append values in string array (type String[]) to an object with IList<String>. A quick look-up on MSDN revealed that IList<T>'s Insert method onl...
Lakendra asked 12/7, 2009 at 22:54

2

I have an IList<string> returning from a function (as variable lst) and I set and then I this.dataGridView1.DataSource = lst; The datagrid adds one column labelled Length and then lists t...
Yousuf asked 9/7, 2009 at 14:45

2

Solved

The MSTest framework has a CollectionAssert that accepts ICollections. My method returns an IList. Apparently a list is not a collection.. Are there ways to make my IList an ICollection?
Nicety asked 19/3, 2009 at 14:39

2

Solved

What is the most suitable container just for strings holding in some array with non-predetermined upper boundary, which length is unknown on it's creation. For simple code like: var list = new So...
Gaucherie asked 21/3, 2009 at 10:41

5

Solved

I would like to call FindLast on a collection which implements IEnumerable, but FindLast is only available for List. What is the best solution?
Enharmonic asked 12/1, 2009 at 15:20

© 2022 - 2024 — McMap. All rights reserved.