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
Configuration.KeyPerFile
DataProtection
DefaultBuilder
Features/JsonPatch
FileProviders
Framework
Grpc
HealthChecks
Hosting
Html/Abstractions
Http
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
Razor Add Public API baselines for Razor (#25637) 2020-09-10 13:27:09 -07:00
Security
Servers
Shared
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