public static T Validate(T settings, ISettingOverride settingOverride, ISettingError settingError, IApplicationOverride applicationOverride) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } ValidateAllSettings(settings.GetType(), settings, settingOverride, settingError, applicationOverride); return(settings); }
public static T Validate(T settings, ISettingOverride settingOverride, ISettingError settingError) { return(Validate(settings, settingOverride, settingError, null)); }