public static T?GetCustomSection <T>(this System.Configuration.Configuration @this, string name) where T : class, new() { return(@this.GetCustomSection(name) as T ?? new T()); }