Revert bad PR that was merged to soon (dotnet/corefx#24412)
authorArthur Vickers <ajcvickers@hotmail.com>
Tue, 3 Oct 2017 22:34:41 +0000 (15:34 -0700)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2017 22:34:41 +0000 (15:34 -0700)
commite28042f85847e9a253abce1458ccf05ecf13f943
tree8508740462b1623a1ca2a07602f7468b4f78f538
parent58ea9bfc830342d6e804344875641546b26a6644
Revert bad PR that was merged to soon (dotnet/corefx#24412)

See dotnet/corefx#24064. The checked in fix is wrong because it changes the behavior when .NET Native is being used such that a nonsensical exception will be thrown which would never be thrown when .NET Native is not being used. These kinds of errors are really hard for developers to debug.

Instead we will let .NET Native fail in the normal way when rd.xml data is not available. This will direct people to add metadata appropriately when they need to get this to work.

Commit migrated from https://github.com/dotnet/corefx/commit/33d3ed08cdc0c59b00aa14874c2bd5a6be256fee
src/libraries/System.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/MaxLengthAttribute.cs