Releases: Sergio0694/PolySharp
Releases · Sergio0694/PolySharp
1.3.0
This PolySharp release includes minor tweaks and one missing polyfill.
🪄 Polyfills
[RequiresPreviewFeatures]
(needed for preview features)
1.2.0
This PolySharp release includes additional options and performance optimizations to the generator.
⚙️ Options
- "PolySharpExcludeGeneratedTypes": excludes specific types from generation (';' or ',' separated type names).
1.1.0
This PolySharp release includes additional polyfills to help in multi-targeting scenarios.
🪄 Polyfills
- Reflection annotation attributes (see docs):
[DynamicallyAccessedMembers]
[DynamicDependency]
[RequiresUnreferencedCode]
[UnconditionalSuppressMessage]
[StackTraceHidden]
(see here)[UnmanagedCallersOnly]
(see docs))- Platform support annotation attributes (see docs):
[ObsoletedOSPlatform]
[SupportedOSPlatform]
[SupportedOSPlatformGuard]
[TargetPlatform]
[UnsupportedOSPlatform]
[UnsupportedOSPlatformGuard]
⚙️ Options
- "PolySharpIncludeRuntimeSupportedAttributes": enables polyfills for (dummy) runtime-supported attributes too.
1.0.1
First stable release of PolySharp.
🪄 Polyfills
- Nullability attributes (for nullable reference types):
[AllowNull]
[DisallowNull]
[DoesNotReturn]
[DoesNotReturnIf]
[MaybeNull]
[MaybeNullWhen]
[MemberNotNull]
[MemberNotNullWhen]
[NotNull]
[NotNullIfNotNull]
[NotNullWhen]
Index
andRange
(see indices and ranges)[UnscopedRef]
(see low-level struct improvements)- Required members (see required modifier)
[RequiredMember]
[SetsRequiredMembers]
[CompilerFeatureRequired]
(needed to support several features)[IsExternalInit]
(needed for init-only properties)[SkipLocalsInit]
(see docs)- Interpolated string handlers (see docs)
[InterpolatedStringHandler]
[InterpolatedStringHandlerArgument]
[CallerArgumentExpression]
(see docs)
⚙️ Options
- "PolySharpUsePublicAccessibilityForGeneratedTypes": changes the accessibility of generated types from
internal
topublic
.