This document now exists on the official ASP.NET core docs page.
- Application
- Request Handling
| using System.Runtime.CompilerServices; | |
| Foo foo = new Foo(5,6,7,8); | |
| // scenario (why we're here): the GetRef method doesn't compile :( | |
| // you cannot conveniently use by-ref return from struct methods | |
| // or properties, because "this" is has scoped-like semantics; | |
| // ("scoped" can be paraphrazed as "this reference is not captured | |
| // or returned", i.e. it doesn't risk exposing the reference later) |
This document now exists on the official ASP.NET core docs page.
| Name | Package Id | Version | Source |
|---|---|---|---|
| 7Zip | 7zip.7zip | 19.0.0 | winget |
| Altap Salamander | salamander | choco | |
| Alt-Tab Terminator | alt-tab-terminator | choco | |
| AutoHotkey | Lexikos.AutoHotkey | 1.1.33.02 | winget |
| AutoHotkey Store Edition | HaukeGtze.AutoHotkeypoweredbyweatherlights.com | Latest | msstore (via winget) |
| Carnac |
| using System.Linq.Expressions; | |
| namespace Microsoft.EntityFrameworkCore | |
| { | |
| public static class IQueryableExtensions | |
| { | |
| public static IQueryable<TQuery> In<TKey, TQuery>( | |
| this IQueryable<TQuery> queryable, | |
| IEnumerable<TKey> values, | |
| Expression<Func<TQuery, TKey>> keySelector) |
| /* | |
| Copyright Phil Haack | |
| Licensed under the MIT license - https://github.com/haacked/CodeHaacks/blob/main/LICENSE. | |
| */ | |
| using System; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| using Microsoft.EntityFrameworkCore; | |
| using Microsoft.EntityFrameworkCore.Metadata.Builders; |
| public static class ShellHelper | |
| { | |
| public static Task<int> Bash(this string cmd, ILogger logger) | |
| { | |
| var source = new TaskCompletionSource<int>(); | |
| var escapedArgs = cmd.Replace("\"", "\\\""); | |
| var process = new Process | |
| { | |
| StartInfo = new ProcessStartInfo | |
| { |