aspnetcore/src
Ken Egozi cc0665cb6f
TypeReference usage clarification (#25719)
This change makes TypeReference usage a little bit easier

- Marking it abstract make it so that usages cannot "forget" subclassing (or omitting the { } part). Previously the error message would be confusing as the supertype would be Object.
- Removing the instanceof check and relying on exception since instantiating TypeReference without a type parameter (new TypeReference() ) *is* exceptional as it goes against the intention of this class altogether.
- Added some clarification to the javadoc regarding intended usage, and a link to prior art for further reading.
2020-09-10 15:02:21 -07:00
..
Analyzers
Antiforgery
Azure
Components Use ICU sharding (#25521) 2020-09-10 10:17:02 -07:00
Configuration.KeyPerFile
DataProtection
DefaultBuilder
Features/JsonPatch
FileProviders
Framework Strip duplicate files from SharedFx input to Nuget Pack (#25733) 2020-09-09 14:15:17 -07:00
Grpc
HealthChecks
Hosting
Html/Abstractions
Http Update DfaMatcherBuilder to use the correct behavior (#25616) 2020-09-10 10:18:32 -07:00
Identity
Installers Enable ARM64 installers build. (#25579) 2020-09-10 10:59:37 -07:00
JSInterop
Localization
Logging.AzureAppServices
Middleware
MusicStore
Mvc Use JsonSerializerDefaults instead of specifying individual options (#25747) 2020-09-10 11:54:00 -07:00
ObjectPool Add Public API baselines for Razor (#25637) 2020-09-10 13:27:09 -07:00
ProjectTemplates Update error page (#25706) 2020-09-10 10:20:19 -07:00
Razor Add Public API baselines for Razor (#25637) 2020-09-10 13:27:09 -07:00
Security Add Public API baselines for Security (#25651) 2020-09-09 21:07:15 -07:00
Servers Add public API baselines for Servers (#25652) 2020-09-09 21:07:55 -07:00
Shared Update JSCallResultTypeHelper.cs (#25628) 2020-09-09 13:33:47 -07:00
SignalR TypeReference usage clarification (#25719) 2020-09-10 15:02:21 -07:00
SiteExtensions Add public API baselines for SiteExtensions, Testing, WebEncoders (#25654) 2020-09-10 11:45:01 -07:00
Testing Add public API baselines for SiteExtensions, Testing, WebEncoders (#25654) 2020-09-10 11:45:01 -07:00
Tools
WebEncoders Add public API baselines for SiteExtensions, Testing, WebEncoders (#25654) 2020-09-10 11:45:01 -07:00
submodules