/// <summary> /// Adds a file reader to the file format collections. /// </summary> /// <param name="formats"> /// The formats. /// </param> /// <param name="reader"> /// The reader to add. /// </param> /// <returns> /// The <see cref="IFileFormats"/>. /// </returns> public static IFileFormats Add([NotNull] this IFileFormats formats, IFileReader reader) { return(formats.AddFileAccess(reader)); }
/// <summary> /// Adds a file writer to the file format collections. /// </summary> /// <param name="formats"> /// The formats. /// </param> /// <param name="writer"> /// The writer to add. /// </param> /// <returns> /// The <see cref="IFileFormats"/>. /// </returns> public static IFileFormats Add([NotNull] this IFileFormats formats, IFileWriter writer) { return(formats.AddFileAccess(writer)); }
/// <summary> /// Adds a file access to the file format collections. /// </summary> /// <param name="formats"> /// The formats. /// </param> /// <param name="format"> /// The access to add. /// </param> /// <returns> /// The <see cref="IFileFormats"/>. /// </returns> public static IFileFormats Add([NotNull] this IFileFormats formats, IFileFormat format) { return(formats.AddFileAccess(format)); }