Skip to content

Instantly share code, notes, and snippets.

View RolandPheasant's full-sized avatar
💭
In the mountains for a week,

Roland Pheasant RolandPheasant

💭
In the mountains for a week,
View GitHub Profile
@davidfowl
davidfowl / Example1.cs
Last active September 2, 2024 12:36
How .NET Standard relates to .NET Platforms
namespace Analogy
{
/// <summary>
/// This example shows that a library that needs access to target .NET Standard 1.3
/// can only access APIs available in that .NET Standard. Even though similar the APIs exist on .NET
/// Framework 4.5, it implements a version of .NET Standard that isn't compatible with the library.
/// </summary>INetCoreApp10
class Example1
{
public void Net45Application(INetFramework45 platform)
@mgravell
mgravell / output.txt
Last active November 10, 2017 19:58
xml serializer fun
default serializer
i=0; 32ms, 18 assemblies
i=500; 40ms, 18 assemblies
i=1000; 46ms, 18 assemblies
i=1500; 52ms, 18 assemblies
i=2000; 57ms, 18 assemblies
i=2500; 63ms, 18 assemblies
i=3000; 68ms, 18 assemblies
i=3500; 74ms, 18 assemblies
i=4000; 79ms, 18 assemblies