예제 #1
0
 /// <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));
 }
예제 #2
0
 /// <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));
 }
예제 #3
0
 /// <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));
 }