chadly / Geocoding.net

C# GeoCoding / Address Validation API
MIT License
443 stars 155 forks source link

#88 safe cast #89

Closed 0657code closed 6 years ago

0657code commented 6 years ago

Making sure that there is no invalid cast happening.

0657code commented 6 years ago

I thought about this again and doing a safe cast would cause the method to silently fail if there is something else than a Location in the Resources. While it is unlikely that this happens, it could - either due to wrong serialization (#76 comes to mind) or breaking API changes.