generic-list
Explanation of how List class works
I have a question about the List class. From what I understand List is a class deriving from the Collection class. My problem is that when I read examples on the internet, it says for example List <[详细]
2023-04-12 09:22 分类:问答How to pass List<DerivedClass> when param type is List<BaseClass>?
How can i pass a list which is a list of DerivedObjects where the Method is expecting a list of BaseObjects. I am converting the list .ToList<BaseClass>() and am wondering if there is a better w[详细]
2023-04-11 01:45 分类:问答Why does List.Clear() also get rid of a class property?
I have the following class: Public Class ID Private sID as List(Of Integer) Public property IDlist as List(Of Integer)[详细]
2023-04-10 05:45 分类:问答Filtering a list with linq
Being new to linq, I am having trouble trying to apply a filter to a List object. This is what I have so far[详细]
2023-04-09 08:01 分类:问答How to clone a generic list of instances of a class derived from an abstract class in C#?
I have a base class: abstract class Base and some derived classes: class Derived: Base, that all data members are in the base class. I have another generic list: List<Base> list. Now I want to p[详细]
2023-04-03 21:04 分类:问答What is the VB.NET syntax for using List.FindAll() with a lambda?
In C# I have been performing a FindAll in a 开发者_开发知识库generic list as follows: List<group.category> tlist = list.FindAll(p => p.parid == titem.catid);[详细]
2023-04-02 02:08 分类:问答how to get byte size of type in generic list?
I have this generic list and I want to get the byte size of the type like if T is string or int etc., I tried both ways as written in getByteSize(), and just to let you know I am using only one way at[详细]
2023-04-02 00:02 分类:问答Orderby in generic list
I have a generic l开发者_高级运维ist which I form from two other lists. The orderby doesn\'t seem to be working correctly. BeOrders come first (ordered by date) then BTOrders (ordered by date). Have I[详细]
2023-04-01 20:21 分类:问答How do I get my data to show in correct DataGridView column?
I am trying to populate my DataGridView with custom columns imported from Excel.This should be easy but for the life of me, I am stuck in a brainlock.I should be able to select the specific columns (w[详细]
2023-04-01 14:14 分类:问答how to find the max id from a generic list
i m getting a collection of data in lis开发者_如何学Ct\'s object. And from this list i want to get the maximum id.`[详细]
2023-04-01 06:46 分类:问答