LINQ Source Code Available [closed] - c#

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I'm using a .Net 2 project and am missing LINQ.
I cannot use 3rd party tools or try using the System.Core hack to get it to work so I was thinking that if the LINQ source code is available I could just copy the extension methods and create a class in my project.
I mainly need it for Array, List type querying etc
Thanks

You can use mono's LINQ source code. It is highly compatible with .NET's LINQ.
Update: Even better, original .NET source now is available.

The Microsoft implementation of LINQ source is not available for you to use. LINQ will not work with .NET 2.0. You will need at least .NET 3.5.

You might want to try LINQBridge.

LINQ is not merely classes, it is upgraded compiler as well to understand Anonymous classes, methods, lambda expressions etc. You can use LINQ in 2.0 as well. Create seperate project, set framework 3.5. And it will work in 2.0 projects. Only thing u will miss is intellisense in VS 2005.

Old Question, but interesting.
Source code of linq (part of .Net framework) is now available
Reference Source
Also, in github
github-Microsoft NET Reference Source

Related

How to use System.Data.SQLite.Linq [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I was wondering how to just use System.Data.SQLite.Linq to query SQLite database, without Entity Framework involved.
I had used decompiler tool to check System.Data.SQLite.Linq and System.Data.SQLite.EF6, it seems like they are the same except the namespace and EntityFramework is referenced by the latter.
I see the following description on the official website:
http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki
As far as I understand, any package that support Linq should implement the IQueryProvider and IQueryable interfaces, but I don't see this in package System.Data.SQLite.Linq.
Can someone explain it? Thanks a lot!
I have analysed their sources and cannot even understand for which purpose it was introduced and how it is related with LINQ.
If you need good SQLite LINQ support without EF, I know only one library which can do that effectively linq2db (disclaimer, I'm one of the creators)

Microsoft Collections for .NET [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
.NET comes with some built in collections (stack, queue, dictionary, list etc.) but others common collections, like priority queues, are missing. There are many third party collection libraries on NuGet but I was wondering if there is an official Microsoft one (like the BCL immutable collections now called System.Collections.Immutable) library with things like (mutable) priorities queues?
EDIT: Important clarification (comment by #rmunn):
This question is not asking to recommend a library for X, it is asking
a factual question, "Are there any official Microsoft libraries for
X?"
.NET 6+: .NET 6 adds a System.Collections.Generic.PriorityQueue<TElement,TPriority> class. And FWIW it is open-source and implemented in c#.
Earlier .NET Core versions and .NET Framework: Microsoft has written (and shared online) 2 internal PriorityQueue classes within the .NET Framework. You could use their code.
See also: Priority queue in .Net
I'm not sure if you already looked at it, but the System.Collections.Specializednamespace contains quite some hidden gems.
Also the System.Linq namespace can be worth a look.

Can I parse C functions with a regular expression in C#? [duplicate]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
For my diploma thesis I need to implement certain static C code analysis and I am desperately looking for a framework/library that would allow me to parse C source code, split it up into single functions, for every function determine what variables are changed in the function body and derive certain annotations for the code automatically.
Is there any good framework written in C# or generally as .Net class for this purpose?
What about googling for "C Parser written in C#"?
I got this as first link: http://code.google.com/p/cpp-ripper/
Also, I think the C grammar can be found in quite a lot of places, so you might just want to open up your .NET variant of lex/yacc and go from there?
You might like to check ANTLR. It comes with versions of several versions, included C and C#. There are some free grammars on ANTLR web site, including C.
I had a similiar problem and having done a research about YACC tools for C# I have chosen Gold Parsing System with Semantic Engine. My project was parsing SQL queries and generating logical query plans (from T-SQL grammar subset).
I really recommend it. Those 2 libraries make parsing stuff painless and allow to map grammar to the object model in your code. It feels very intuitive and made my project successful :) However, it may lack some advanced ANTLR features, so recognize your needs carefully.
Gold Project http://www.devincook.com/goldparser/
Semantic Engine Lib http://code.google.com/p/bsn-goldparser
If you're ok with using GPL'd code, you might want to take a look at the GCC source code. If you need to do it within .Net, you can always use p/invoke to call code from the GCC libraries.

Is there a standalone tool to generate Entity Framework code first entities from an existing database? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I want the ability to generate POCO entities outside of Visual Studio. Is this possible?
I haven't found a standalone tool (outside of Visual Studio), but I've used the Visual Studio extension EntityFramework Reverse POCO Generator on a previous project when switching from Database First / Model First to Code First.
Why does it need to be a standalone tool? You could remove the extension after the conversion if it's a permanent switch.
EntityDeveloper by DevArt. Nice with UI and strong on updating the model, too. Sadly not free, but then not exactly expensive either.
I realize this is an old question, but it's an issue I'm facing myself currently.
I've managed to have some luck by using EdmGen.exe which is included with in .net4 framework installations, so it's most probably present on client machines.
EdmGen will generate Model and Mapping files and, in addition, you can Generate Object-Layer code with it.
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:fullgeneration /c:"Data Source=<DATASOURCE>; Initial Catalog=<CATALOG>; Integrated Security=SSPI" /project:<PROJECT> /entitycontainer:<ENTITY CONTAINER> /namespace:<NAMESPACE> /language:CSharp
After this you can go ahead a generate your Object-Layer code:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\edmgen.exe" /mode:EntityClassGeneration /incsdl:.\<PROJECT>.csdl /outobjectlayer:.\<PROJECT>.Objects.cs /language:CSharp
Obviously, you'll want to replace the <*> with your particular needs.
You can also replace \Framework\ with \Framework64\ in the path if you're on a 64-bit machine.
You can read up on all of the features here:
EDM Generator Docs
I've managed to get it working, but the performance has been deplorable. I'm working with a somewhat complex database with about 80 tables and 30-40 views and the fullgeneration took over an hour. I've seen other similar cases online, but haven't found a solution.
EDIT: I just ran into this excellent tutorial/article which helps automate the whole process. Hope this helps!

Wrapper class for WIA/TWAIN for a C# application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
Is there a wrapper class somewhere for WIA/TWAIN functionality in a C# application?
Every search I make points to the same old 2001 CodeProject page, there has to be something new out there, right?
Maybe I'm not looking in the right place. :P
I need something really simple, like:
Image myImage = wiaWrapper.GetImageFromScanner();
Done and done.
Any guidance?
TwainDotNet
I've wrapped up the code from Thomas Scheidegger's article (CodeProject: .NET TWAIN image scanning) into a GitHub project.
I've cleaned up the API a bit, added WPF support and several people have added other improvements. I've tried to keep the API simple but it is still a bit more complicated that what you've got there.
Also this question has some other options: .NET Scanning API
Besides TwainDotNet maintained by Luke, I have recently noticed NTwain on NuGet (project page on Bitbucket).
Disclaimer: I work for Atalasoft
We publish DotTwain, which is a .NET TWAIN SDK. It's royalty-free and is used in InspectorTWAIN.com to help certify TWAIN drivers (we're members of the TWAIN working group).
Our product is a .NET Assembly that wraps interop calls.
You could also take a look at EZTwain from Dosadi, which is free. I don't know how native the .NET support is, but they have a way of calling from .NET.
As for a WIA C# wrapper, I came across ScanWIA on Codeplex. It doesn't have a whole lot of documentation. However, reading the source code might help.

Categories

Resources