Fix "Non-static method requires a target" caused by trying to access the HasValue...
authorjbhensley <jbhensley@users.noreply.github.com>
Sat, 13 Oct 2018 00:25:19 +0000 (17:25 -0700)
committerNoah Falk <noahfalk@users.noreply.github.com>
Sat, 13 Oct 2018 00:25:19 +0000 (17:25 -0700)
commit45ac253d094cb1f4d15aff264514f48fdf26cc7c
treef9fa5f562c5068808656ec1bca465276778a1079
parent631d88ee453b539875fca121da7663de44ed3ae8
Fix "Non-static method requires a target" caused by trying to access the HasValue property of a nullable type through reflection when the value is null. (dotnet/coreclr#20350)

Commit migrated from https://github.com/dotnet/coreclr/commit/d6c35b6274a49bf83eff4e1089b8013c3741d936
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/SimpleTypeInfos.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingDataCollector.cs