davidwhitney / System.Configuration.Abstractions

Injectable, mockable, extensible, configuration for .NET
MIT License
42 stars 7 forks source link

Helper - UriConverter #8

Closed oliversweb closed 9 years ago

oliversweb commented 9 years ago

Due to Uri being commonly store in configs I have added a check/converter to allow Uri to be handled like primitives.

In the future we could maybe expose some sort of TypeConverter collection and check items that initially throw conversion exception against this list of converters before we throw the exception.

davidwhitney commented 9 years ago

I'll get this up onto NuGet in the next hour or so

davidwhitney commented 9 years ago

https://www.nuget.org/packages/System.Configuration.Abstractions/2.0.2.24

Extended it to expose a TypeConverters collection and RegisterTypeConverters method so you can add weird and wacky conversions.