ExtensionMethod.NET Home of 880 C#, Visual Basic, F# and Javascript extension methods
Convert an IEnumerator<T> to IEnumerable<T>.
By default, ConfigurationManager.ConnectionStrings returns null if the requested connection string doesn't exist. Use this extension method if you want something a bit more snappy - an exception.