Skip to content

Instantly share code, notes, and snippets.

View Daniel-Svensson's full-sized avatar

Daniel Svensson Daniel-Svensson

View GitHub Profile
@Daniel-Svensson
Daniel-Svensson / Program.cs
Created June 16, 2022 17:04
DataContract_GetId
using System;
using System.Collections.Concurrent;
using System.Runtime.InteropServices;
using System.Runtime.Serialization;
using System.Security.Cryptography;
using System.Xml;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using static System.Runtime.Serialization.DataContract;
@Daniel-Svensson
Daniel-Svensson / CLA.md
Last active June 27, 2019 19:36
OpenRiaServices CLA

This Contribution Agreement (“Agreement”) is entered into between the individual(s) signing below (“You”), and the Outercurve Foundation (“Foundation”), a Washington non-profit corporation, and any other parties signing below. This Agreement is effective as of the latest signature date below (“Effective Date”).

  1. Definitions. “Code” means the computer software code, whether in human-readable or machine-executable form, that is delivered by You to Foundation under this Agreement, including without limitation the code, if any, identified in Appendix A. “Project” means the Foundation project identified below. “Submit” is the act of uploading, submitting, transmitting, or distributing code or other content to the Project, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Project for the purpose of discussing and improving that Projects, but excluding communication that is conspicuously m
@Daniel-Svensson
Daniel-Svensson / gist:4a52116251c30d177bb4bb4c7a99cc7a
Created June 19, 2019 12:21
mstest2 repro - assembly loading
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
using System.Reflection;
namespace ClassLibrary1.Test
{
public class Class1 : IComparable
{
public int CompareTo(object obj)
@Daniel-Svensson
Daniel-Svensson / EntitySetBenchmarks.cs
Created January 31, 2018 13:00
EntitySet benchmarks
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Attributes.Jobs;
using Cities;