Skip to content

Instantly share code, notes, and snippets.

#if NET
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xunit;
using BenchmarkDotNet.Attributes;
using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Benchmarks
{
@madelson
madelson / MedallionCollections.cs
Created January 16, 2016 21:36
Demonstrates the output of rewriting the MedallionCollections source for us in an inline NuGet package
////////////////////////////////////////////////////////////////////////////////
// PACKAGE MedallionCollections.Inline 1.0.1
//
// The code in this file was AUTO-GENERATED by installing the MedallionCollections.Inline NuGet package.
// To update, run Update-Package MedallionCollections.Inline in the NuGet package manager console.
//
// You can modify this file without changing its source by setting
// preprocessor directives referenced here in your project properties
////////////////////////////////////////////////////////////////////////////////
@madelson
madelson / CollectionEquals.cs
Last active January 1, 2016 15:35
.NET implementation of a Collection Equality function to be released in https://github.com/madelson/MedallionUtilities/tree/master/MedallionCollections
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Medallion.Collections
{
// ************** Implementation **************
namespace CodeDucky
{
using Microsoft.CSharp.RuntimeBinder;
using System;
using System.Collections;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Linq;
@madelson
madelson / Cache.cs
Created March 24, 2014 00:22
An expression-based caching API
using System;
using System.Collections;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Linq.Expressions;
using System.Reflection;
using System.Runtime.Caching;
using System.Text;
using System.Threading.Tasks;
@madelson
madelson / Helpers.cs
Created February 23, 2014 22:09
10 utility functions (part 2 of 2)
namespace CodeDucky
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class Throw
{
@madelson
madelson / Helpers.cs
Last active April 11, 2018 06:04
10 utility functions (part 1 of 2)
namespace CodeDucky
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
public static class Throw
{