在.NET C#中设置操作 [英] Set operation in .NET C#

查看:46
本文介绍了在.NET C#中设置操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究与粗加工有关的东西.该项目使用大量的集合操作和操纵.我一直在使用字符串操作作为设置操作的停止间隙度量.它一直运行良好,直到我们需要通过该算法处理大量数据(500,000条记录,每个记录约40列以上).

I'm working on a something related to roughset right now. The project uses alot of sets operation and manipulation. I've been using string operations as a stop gap measure for set operation. It has worked fine until we need to process some ungodly amount of data ( 500,000 records with about 40+ columns each ) through the algorithm.

我知道.net 2.0中没有设置数据结构(2.0是我启动项目时的最新结构),我想知道是否有任何库可以在.net c#中提供快速设置操作,或者是否添加了3.5本机集数据结构.

I know that there is no set data structure in .net 2.0(2.0 was the latest when I started the project) I want to know if there is any library that offer fast set operation in .net c# or if 3.5 has added native set data structure.

谢谢.

推荐答案

.NET 3.5已经具有本机设置数据类型: HashSet和LINQ集运算符

.NET 3.5 already has a native set data type: HashSet. You might also want to look at HashSet and LINQ set operators for the operations.

在.NET 1.0中,存在第三方Set数据类型: Iesi.Collections ,它已通过 Iesi.Collections.Generic 的.NET 2.0泛型进行了扩展.

In .NET 1.0, there was a third party Set data type: Iesi.Collections which was extended with .NET 2.0 generics with Iesi.Collections.Generic.

您可能想尝试一下所有这些,看看哪一个对您最有利.:)

You might want to try and look at all of them to see which one would benefit you the most. :)

这篇关于在.NET C#中设置操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆