Typely
GitHub
  • Overview
    • πŸ‘Welcome!
  • Validations
    • πŸ“Common
    • πŸ”’Number
    • βš–οΈComparable
    • ✏️String
  • Customize errors
    • 🌎Localization
    • πŸ”Sensitive data
  • General
    • 🧩Class VS Struct
    • πŸ–ΌοΈSupported frameworks
    • πŸš€Benchmarks
    • ⚠️Limitations
  • Design decisions
    • πŸ”„Conversions
    • ℹ️Use of interfaces
    • πŸ€Έβ€β™‚οΈUnderlying type comparison
    • πŸ’‚Validations
Powered by GitBook
On this page
Edit on GitHub
  1. General

Supported frameworks

PreviousClass VS StructNextBenchmarks

Last updated 2 years ago

  • .NET 7.0 or greater are first class citizens

  • Backward compatible with .NET Standard 2.0 (Currently not supported)

I wanted the code base to be as simple as possible and extensible so I needed the value objects to be created generically for example in the converters. As the required feature for static methods on interfaces without implementation came with C# 11, it could not be part of .NET Standard 2.0. The trade off here is that projects targeting .NET 7.0 or greater will be optimal and projects using .NET Standard 2.0 will benefits from all the same features but using reflexion where generic static method could not be used.

πŸ–ΌοΈ
Static abstract methods in interfaces - C# 11.0 draft specificationsdocsmsft
Logo
C# language versioning - C# Guidedocsmsft
Logo