/// <summary> /// Sets the <see cref="IPostingsFormatFactory"/> instance used to instantiate /// <see cref="PostingsFormat"/> subclasses. /// </summary> /// <param name="postingsFormatFactory">The new <see cref="IPostingsFormatFactory"/>.</param> /// <exception cref="ArgumentNullException">The <paramref name="postingsFormatFactory"/> parameter is <c>null</c>.</exception> public static void SetPostingsFormatFactory(IPostingsFormatFactory postingsFormatFactory) { PostingsFormat.postingsFormatFactory = postingsFormatFactory ?? throw new ArgumentNullException(nameof(postingsFormatFactory)); }