TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

LINQPad – The .NET Programmer's Playground

308 点作者 wofo11 个月前

32 条评论

justgaurav11 个月前
A long-time satisfied user of LINQPad. It is one of my must haves. I usually upgrade to the latest one when I hit some framework feature or a piece of snippet which requires it. It started as a very reasonably priced for the paid edition and there was only one paid edition for a long time. Nowadays, it is a bit pricier and has several editions (a suggestion would be to merge Pro and Developer editions).<p>I use LINQPad to manage my collection of snippets to do some ad hoc tasks on my machine. I also use it for testing out new code and learning about new features. It would be great when it becomes cross-platform, but last I heard Jo Albahari mentioned that the investment required was quite big and not worth it (at that time).<p>On the side note, I had a chance to see Jo Albahari&#x27;s presentation few years ago in Sydney and I think he is unsung hero of .NET world (along with Ayende)!
评论 #40784428 未加载
xnorswap11 个月前
A true essential tool. One of the few pieces of software for which I own a personal license.<p>One of the useful features is that it keeps the executable running even after the script has finished, and will re-execute in the same process.<p>This has some downsides and quirks (if you&#x27;re not careful, you can double-initialize things like database connections), but has benefits for debugging.<p>The newer versions have &quot;built in&quot; support for Benchmark.NET too which is a really nice feature for quickly proving code.
rjbwork11 个月前
Great piece of software that I basically use for scripting&#x2F;notebooking. Been writing C# so long it&#x27;s my lingua franca and this tool lets me do pretty much everything (except actual shell scripting for use on e.g. build servers and deployment pipelines) in C#.
评论 #40772323 未加载
rqtwteye11 个月前
Linqpad is one of the few tools that do what they need to do without much fuzz and in a straightforward manner. Beyond Compare is also in the same category.<p>I am glad that the UX people haven&#x27;t gotten around to mess it up yet.
评论 #40778984 未加载
smokeydoe11 个月前
Also check out free open source alternative RoslynPad. <a href="https:&#x2F;&#x2F;roslynpad.net&#x2F;" rel="nofollow">https:&#x2F;&#x2F;roslynpad.net&#x2F;</a>
评论 #40771133 未加载
vunderba11 个月前
I haven&#x27;t used Linqpad in a long time but one of the most useful features it had was the ability to add connections to your SQL Server databases and then write quick throwaway LINQ&#x2F;Lambda style syntax queries against it, e.g.<p><pre><code> radios.GroupBy(x=&gt; x.Channel).Select(x=&gt;x.OrderBy(y=&gt;y.Price)).Select(x=&gt;x.First()); </code></pre> If I remember correctly, it also let you compare the LINQ query against the transpiled SQL so you could try to hand-optimize it a bit as well.
评论 #40771517 未加载
jodrellblank11 个月前
<a href="https:&#x2F;&#x2F;github.com&#x2F;tareqimbasher&#x2F;NetPad">https:&#x2F;&#x2F;github.com&#x2F;tareqimbasher&#x2F;NetPad</a> is a cross-platform C# playground, not as developed as LINQPad but gratis and libre (MIT License).
评论 #40776306 未加载
Nuzzerino11 个月前
Unfortunately, they still haven&#x27;t gotten around to making it usable outside of Windows<p><a href="https:&#x2F;&#x2F;forum.linqpad.net&#x2F;discussion&#x2F;1935&#x2F;installation-on-macos#latest" rel="nofollow">https:&#x2F;&#x2F;forum.linqpad.net&#x2F;discussion&#x2F;1935&#x2F;installation-on-ma...</a>
评论 #40772467 未加载
评论 #40777672 未加载
评论 #40774463 未加载
评论 #40797604 未加载
评论 #40773398 未加载
评论 #40771981 未加载
kagevf11 个月前
This blog has some useful Linqpad tips: <a href="https:&#x2F;&#x2F;www.danclarke.com&#x2F;linqpad-tips-and-tricks" rel="nofollow">https:&#x2F;&#x2F;www.danclarke.com&#x2F;linqpad-tips-and-tricks</a><p>In particular, keyboard shortcuts to toggle visibility on the different sub-windows, and using the Util class to prompt for a password I find to be useful.
mnau11 个月前
It&#x27;s a nice program, but you need to pay to update every version of .net, which is every year.<p>I used to purchase premium version (single user) and the upgrade option is $97.50 instead of $125 for new license.
评论 #40772289 未加载
RexM11 个月前
Is there anything like this for Java. I really miss LINQPad since I’ve moved to a company that uses Java instead of C#.
评论 #40772064 未加载
deanebarker11 个月前
I use this constantly. Every single day. I have hundreds of scripts that run in it. It&#x27;s just wildly valuable and useful.
replwoacause11 个月前
I&#x27;ve always wondered why it doesn&#x27;t provide PowerShell support since it too is built atop .NET
评论 #40778875 未加载
readergreader11 个月前
Ditched it after realizing I&#x27;d have to pay for every .NET version change, and never looked back.
judah11 个月前
I&#x27;ve been a happy paid user of LINQPad for over 8 years now. Love it, well worth the price.
nlawalker11 个月前
I love LINQPad, it reminds me of first learning to program via DrJava in college. Just write and run code, completely free from all the configuration, structure and other concerns related to building and shipping a binary or other deliverable.
ed_elliott_asc11 个月前
I’ve never got used to linqpad over just creating a console app and writing code, it may be because I’ve never been one for keeping a collection of snippets?<p>I’m not against it, I just don’t need it
评论 #40773696 未加载
评论 #40779268 未加载
lf-non11 个月前
Also <a href="https:&#x2F;&#x2F;github.com&#x2F;waf&#x2F;CSharpRepl">https:&#x2F;&#x2F;github.com&#x2F;waf&#x2F;CSharpRepl</a> - if you want a conventional repl, also cross platform.
jasomill11 个月前
As someone with a strong bias towards interactive, investigative, &quot;library-first&quot; development, LINQPad is an essential part of my C# toolkit, as every other C# REPL and interactive environment I&#x27;ve tried has come up short in one significant way or another.<p>Essential LINQPad productivity features for me include:<p>1. Flexible visualization tools with sensible defaults and one-click export.<p>2. Ability to easily round-trip copy&#x2F;paste code snippets between LINQPad and external IDE projects with minimal fuss (e.g., no boilerplate required for expressions, statements, or simple functions).<p>3. Automatic reloading of libraries I&#x27;m working on externally in an IDE with minimal IDE rebuild interference.<p>3. Completion on par with VS.<p>4. One-click document cloning.<p>5. NuGet integration, including the ability to search for and update referenced packages.<p>6. A simple, built-in debugger.<p>A typical LINQPad workflow for me (excluding tasks like writing documentation and unit tests for brevity):<p>1. Start with a task of accessing or exporting data from either a set of files in an unknown format or from an application — ideally, but not always, a Web application — without a documented API.<p>2. Create a library project in Rider or VS and a LINQPad document referencing the library.<p>3. Investigate the files or application interactively using LINQPad and other tools (hex editors for investigating binary formats, jq&#x2F;IPython&#x2F;PowerShell for JSON and XML, browser dev tools for Web apps, accessibility tools when automating Windows desktop apps, etc.).<p>4. Add data access mechanisms to the library.<p>5. Repeat steps 3 and 4 as necessary, with more and more work being done in LINQPad via the library on each iteration.<p>6. Build simple command-line or graphical tools on top of the library to allow non-programmers to access or export data from similar systems in the future without LINQPad. In cases where non-UI logic in these tools becomes non-trivial, I&#x27;ll typically prototype this logic in LINQPad and extract it into a library, as well.<p>Finally, as new requirements arise, I can load up existing libraries and LINQPad to analyze and prototype solutions, often leading to initial results delivered to customers in minutes rather than hours.
XajniN11 个月前
If you’re using Sublime Text, you can install dotnet-script [1] and set up a new build system for .NET like this:<p>{ &quot;file_patterns&quot;: [&quot;*.cs&quot;], &quot;cmd&quot;: [&quot;dotnet-script&quot;, &quot;$file&quot;] }<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;dotnet-script&#x2F;dotnet-script">https:&#x2F;&#x2F;github.com&#x2F;dotnet-script&#x2F;dotnet-script</a>
enb11 个月前
Haven’t used it in a while but it was essential in helping me understand how the bcl and c# features behaved and worked. I love it
alhsn11 个月前
Awsome tool which I used for a while. Then I switched to RosylnPad because it was enough for my use cases, and it included intellecense.<p>Nowadays, I am looking for a notebook style editor (like jupyter notebook) that supports dotnet well and works with VS Code. I tried Polygot notebook a while back, but it kept crashing, so I un-installed it.
thefz11 个月前
I bought every major version. Truly a staple of my day to day job when I was working as a programmer. Invaluable scratchpad.
gsck11 个月前
I stumbled across this the other day, I was given an old SQL Server Compact database and needed to dump out some information from it, and LINQPad was the first program that was recommended.<p>Unfortunately the DB was SQLServer Compact 3.5 and for whatever reason LINQPad couldn&#x27;t find the required assemblies to open it which was a shame
CodeCompost11 个月前
Honestly surprised that Microsoft have not bought this up and integrated it into Visual Studio. LINQPad is gold.
评论 #40771316 未加载
评论 #40770872 未加载
评论 #40774425 未加载
评论 #40771365 未加载
voidmain000111 个月前
I like that multiple databases can be used in the same scripting context. <a href="http:&#x2F;&#x2F;www.linqpad.net&#x2F;FAQ.aspx#cross-database" rel="nofollow">http:&#x2F;&#x2F;www.linqpad.net&#x2F;FAQ.aspx#cross-database</a>
bilekas11 个月前
I used to use this a few years back when my company was paying for it, but nowadays I dont work too much with dotnet but for all playground little things I use ideone.com it does it all in the browser.
评论 #40772785 未加载
MikeGale11 个月前
The program is gold. It enables you to speedily and almost effortlessly build up code, in a way that I haven&#x27;t seen elsewhere.
NicoJuicy11 个月前
I&#x27;ve setup linqpad as a CMS for scripts and distributed it over nuget for support scripts.<p>Including login and etc.<p>Linqpad is great
FrustratedMonky11 个月前
In the background is this doing anything similar to what a F# typeprovider is doing?
评论 #40776674 未加载
figers11 个月前
Thought with a name like that it was for the iPad, wish it was...
loxias11 个月前
Borderline dangerous software. If it was reliable and worthy of supporting a stack, it wouldn&#x27;t be Windows only.<p>By being Windows only, it conveys &quot;toy&quot; status. Professional database engineers don&#x27;t use non-Linux, hence I can infer professionals don&#x27;t use this.
评论 #40773169 未加载
评论 #40774415 未加载
评论 #40785761 未加载