RobThree / NUlid

.Net ULID implementation
MIT License
364 stars 25 forks source link

Fix inconsistency between XML documentation and exception thrown #10

Closed crnd closed 5 years ago

crnd commented 5 years ago

When constructing a new Ulid with Ulid(SerializationInfo info, StreamingContext context) a NullReferenceException would be thrown if info is null. However the XML documentation states that in this case an ArgumentNullException would be thrown. This PR checks for the null and then throws the ArgumentNullException if required.

RobThree commented 5 years ago

Thanks!