Skip to main content
When targeting netstandard2.0, the SDK injects polyfills for modern C# features.
FeatureWhat it enables
Index / Rangearray[^1], array[1..3] syntax
IsExternalInitrecord types and init properties
Nullability attributes[NotNull], [MaybeNull], etc.
TimeProviderTestable time abstraction
Trim/AOT attributes[RequiresUnreferencedCode], etc.
String extensionsstring.Contains(char) overloads

Opt-in Polyfills

Additional polyfills available on request:
<PropertyGroup>
  <InjectLockPolyfill>true</InjectLockPolyfill>
  <InjectTimeProviderPolyfill>true</InjectTimeProviderPolyfill>
</PropertyGroup>
Polyfills are only injected for netstandard2.0 / netstandard2.1 targets. .NET 10 projects don’t need them.