在哪里可以查看LINQ源代码? [英] Where can I view LINQ source code?

查看:231
本文介绍了在哪里可以查看LINQ源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要编写自己的Except方法版本,或者至少以某种方式修改LINQ的工作方式.我正在与大量自定义对象进行比较,并且需要从列表A到列表B连接匹配项.我认为,除了哈希表构建是进行比较的最快方法,但是该方法只会返回非匹配项.我在想是否可以看一下该方法的实际工作原理,可以添加所需的功能.

I need to write my own version of the Except method, or at least somehow modify how the LINQ one works. I'm comparing to large lists of custom objects, and need connect matches from list A to list B. I think Excepts hash table building is the fastest way to do the comparison, but the method will only return the non matches. I'm thinking if I can take a peek at how the method actually works, I can add the functionality I need.

有人知道此资源的位置吗?

Does anyone know where this resource is located?

推荐答案

.NET源代码现已开放源代码.您可以在GitHub上 进行检查. LINQ源在这里: https://github.com/dotnet/corefx /tree/master/src/System.Linq

.NET source code is open source now. You can check it on GitHub. The LINQ source is here: https://github.com/dotnet/corefx/tree/master/src/System.Linq

还要注意: Linq Except如何工作?

这篇关于在哪里可以查看LINQ源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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