Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add Mapper.Reset back #2404
@jbogard so why did you guys implemented it that way that the Instance or Configuration properties throw exceptions from getter? Just return nulls if mapper is not initialized and then everyone can just check Instance == null to call Initialize once
Currently there's no way to check or ensure that mapper is not initialized except using try-catch
It was a convenience thing (for us), but anyway, there is no need for that check. In theory, after that check, somebody else could have called initialize, so the check is useless. It should be easy to ensure Initialize is only called once using smth like Lazy.