ardalis/SmartEnum

FromValue documentation specifies that the wrong exception is thrown

Asafima opened this issue · 0 comments

In FromValue method, documentation says KeyNotFoundException is thrown if the value is not found,
whereas source code actually shows a more specific exception is thrown.

Documentation should specify that a SmartEnumNotFoundException is thrown.

FromValue method:
image

image

Source code:

public static TEnum FromValue(TValue value)