/// <summary> /// Creates and populates a feature. /// </summary> /// <typeparam name="TFeature">The feature.</typeparam> /// <param name="applicationPartManager">The application part manager.</param> /// <returns>The populated feature.</returns> public static TFeature CreateAndPopulateFeature <TFeature>(this IApplicationPartManager applicationPartManager) where TFeature : new() { var result = new TFeature(); applicationPartManager.PopulateFeature(result); return(result); }