Method ConvertToSetting
ConvertToSetting<T, E>(List<E>)
Converts a list of settings to the specified type.
public static T ConvertToSetting<T, E>(List<E> settings) where T : class, new() where E : IBaseSettings
Parameters
settings
List<E>The list of settings to convert.
Returns
- T
The converted settings object.
Type Parameters
T
The type to convert to.
E
The type of the settings.
Exceptions
- ArgumentNullException
Thrown when the settings list is null.