Skip to content

Instantly share code, notes, and snippets.

@MKGAURAB
Forked from davidfowl/Example1.cs
Created July 14, 2020 09:34
Show Gist options
  • Select an option

  • Save MKGAURAB/b0ce03030363930e1ba4aeafe6f6032e to your computer and use it in GitHub Desktop.

Select an option

Save MKGAURAB/b0ce03030363930e1ba4aeafe6f6032e to your computer and use it in GitHub Desktop.
How .NET Standard relates to .NET Platforms
using System;
namespace Analogy
{
// .NET Standard
interface INetStandard10
{
void Primitives();
void Reflection();
void Tasks();
void Xml();
void Collections();
void Linq();
}
interface INetStandard11 : INetStandard10
{
void ConcurrentCollections();
void LinqParallel();
void Compression();
void HttpClient();
}
interface INetStandard12 : INetStandard11
{
void ThreadingTimer();
}
interface INetStandard13 : INetStandard12
{
void FileSystem();
void Console();
void ThreadPool();
void Crypto();
void WebSockets();
void Process();
void Sockets();
void AsyncLocal();
}
interface INetStandard14 : INetStandard13
{
void IsolatedStorage();
}
interface INetStandard15 : INetStandard14
{
void AssemblyLoadContext();
}
// .NET Framework
interface INetFramework45 : INetStandard11
{
void FileSystem();
void Console();
void ThreadPool();
void Crypto();
void WebSockets();
void Process();
void Drawing();
void SystemWeb();
void WPF();
void WindowsForms();
void WCF();
}
interface INetFramework451 : INetFramework45, INetStandard12
{
}
interface INetFramework452 : INetFramework451, INetStandard12
{
// Not Many APIs were added in .NET 4.5
}
interface INetFramework46 : INetFramework452, INetStandard13
{
}
// Windows Universal Platform
interface IWindowsUniversalPlatform : INetStandard13
{
void GPS();
void Xaml();
}
// .NET Core
interface INetCore10 : INetStandard15
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment