#Leszek
- HTTP 2.0 + gRPC
- Networking - benchmarks and more
- Single image deployment
- Native To managed transition
#Michał
namespace Fs | |
module Bench = | |
let condition x = | |
if (x = 1 || x = 2) then 1 | |
elif(x = 3 || x = 4) then 2 | |
else 0 | |
let conditionReorder x = | |
if (x = 4 || x = 3) then 2 |
using System.Collections.Generic; | |
using NUnit.Framework; | |
using NUnit.Framework.Constraints; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using NUnit.Framework.Internal; | |
namespace NUnit_CountBug | |
{ |
using System.Collections.Generic; | |
using NUnit.Framework; | |
namespace NUnit_CountBug | |
{ | |
[TestFixture] | |
public class CountBug | |
{ | |
[Test] | |
public void CountConstraint_ShouldWorkForInterface() |
using System; | |
namespace RecordSettings | |
{ | |
/// <summary> | |
/// Collection parsing settings | |
/// </summary> | |
/// <remarks>For performance reasons, all delimiters and escaped characters are single chars. This makes a parsing grammar to conform LL1 rules and is very beneficial to overall parsing performance </remarks> | |
/// <param name="DefaultCapacity">Capacity used for creating initial collection/list/array. Use no value (null) to calculate capacity each time based on input</param> | |
public abstract record CollectionSettingsBase(char ListDelimiter, char NullElementMarker, char EscapingSequenceStart, char? Start, char? End, byte? DefaultCapacity) : ISettings |
using System; | |
using RecordsProducer; | |
var lizard1 = new Reptile(Habitat.Terrestrial) { Name = "Agama" }; | |
var lizard2 = new Reptile(Habitat.Terrestrial) { Name = "Agama" }; | |
//use <LangVersion>latest</LangVersion> | |
var lizard3 = lizard1 with { Name = "Komodo dragon", Habitat = Habitat.Terrestrial }; |
using System; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Text; | |
namespace EncUtf8 | |
{ | |
class Program | |
{ | |
private static string _in = @"Rozdział pierwszy |
using System; | |
namespace DotnetCommunityDemoNet5 | |
{ | |
abstract class Component:ICloneable | |
{ | |
public int ComponentId { get; } | |
protected Component(int componentId) => ComponentId = componentId; |
#Leszek
#Michał
// Do not replace the array allocation with Array.Empty. We don't want to have the overhead of | |
// instantiating another generic type in addition to ArraySegment<T> for new type parameters. | |
public static ArraySegment<T> Empty { get; } = new ArraySegment<T>(new T[0]); |
//Head+Tail for ROS<T> | |
static void Deconstruct<T>(this ReadOnlySpan<T> span, out T head, out ReadOnlySpan<T> tail) | |
{ | |
switch (span.Length) | |
{ | |
case 0: | |
head = default; | |
tail = default; | |
return; | |
case 1: |