- Proposed
- Prototype: Not Started
- Implementation: Not Started
- Specification: Not Started
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
public class AtomicReference<T> | |
{ | |
private object _lock = new object(); | |
private T _value; | |
public AtomicReference(T value) => _value = value; | |
public void LockedUpdate(Func<T,T> updateFunc) | |
{ | |
lock(_lock) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#define run | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#define run | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#define run | |
using BenchmarkDotNet.Attributes; | |
using BenchmarkDotNet.Running; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using System.Collections.Immutable; | |
namespace StrongInject | |
{ | |
internal class ImmutableSetInInsertionOrder<T> : IImmutableSet<T> | |
{ | |
private readonly ImmutableDictionary<T, int> _items; | |
private readonly ImmutableSortedDictionary<int, T> _insertionOrder; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Linq; | |
public class ListDictionary<TKey, TValue> : IDictionary<TKey, TValue> | |
{ | |
private readonly List<KeyValuePair<TKey, TValue>> _list; | |
public ListDictionary() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Licensed to the .NET Foundation under one or more agreements. | |
// The .NET Foundation licenses this file to you under the MIT license. | |
// See the LICENSE file in the project root for more information. | |
using System; | |
using System.Diagnostics; | |
using System.Text; | |
using Roslyn.Utilities; | |
namespace Microsoft.CodeAnalysis.Text |
I did a case sensitive search for usages of .<MethodName>(
on https://grep.app/ in C# files.
For some I removed usages that were obviously not related to Linq where the problem was obvious and common - e.g string.Join(
and sb.Append(
.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"context" | |
"fmt" | |
"os" | |
"cloud.google.com/go/ai/generativelanguage/apiv1beta" | |
"cloud.google.com/go/ai/generativelanguage/apiv1beta/generativelanguagepb" | |
"google.golang.org/api/option" |
OlderNewer