src/Shared/EntityFramework/DataAnnotations/MaxLengthAttribute.cs
/// <summary>
/// Checks that Length has a legal value.  Throws InvalidOperationException if not.
/// </summary>
Checks that Length has a legal value.  Throws InvalidOperationException if not.
Checks that Length has a legal value . Throws InvalidOperationException if not .
private void EnsureLegalLengths()
        {
            if (Length == 0
                || Length < -1)
            {
                throw Error.MaxLengthAttribute_InvalidMaxLength();
            }
        }
private void EnsureLegalLengths ( ) { if ( Length == 0 || Length < - 1 ) { throw Error . MaxLengthAttribute_InvalidMaxLength ( ) ; } }
Checks that Length has a legal value.
Checks that Length has a legal value .