Databases should not have a public way to "Get" without "TryGet" #1
Labels
database
Relates to the "Database" lookup of Cards, Status Effects, etc.
identified-in-tests
Notates that a work item or issue was detected in relation to the Tests effort.
Databases have a "TryGet" and a "Get" by convention. At time of writing, "Get" methods are public. This runs the risk of users calling "Get" directly on things that do not exist. This will result in an exception being thrown.
Only "TryGet" methodology should be public. The other methods should be internal or private, or removed if not necessary.
The text was updated successfully, but these errors were encountered: