@@ -411,6 +411,11 @@ internal FileBase() { }
411411 /// </remarks>
412412 public abstract void WriteAllBytes ( string path , byte [ ] bytes ) ;
413413
414+ #if NETCOREAPP2_0 || NETSTANDARD2_1
415+ /// <inheritdoc cref="File.WriteAllBytesAsync"/>
416+ public abstract Task WriteAllBytesAsync ( string path , byte [ ] bytes , CancellationToken cancellationToken ) ;
417+ #endif
418+
414419 /// <inheritdoc cref="File.WriteAllLines(string,IEnumerable{string})"/>
415420 /// <summary>
416421 /// Creates a new file, writes a collection of strings to the file, and then closes the file.
@@ -445,12 +450,6 @@ internal FileBase() { }
445450 /// You can use this method to create the contents for a collection class that takes an <see cref="IEnumerable{T}"/> in its constructor, such as a <see cref="List{T}"/>, <see cref="HashSet{T}"/>, or a <see cref="SortedSet{T}"/> class.
446451 /// </para>
447452 /// </remarks>
448-
449- #if NETCOREAPP2_0 || NETSTANDARD2_1
450- /// <inheritdoc cref="File.WriteAllBytesAsync"/>
451- public abstract Task WriteAllBytesAsync ( string path , byte [ ] bytes , CancellationToken cancellationToken ) ;
452- #endif
453-
454453 public abstract void WriteAllLines ( string path , IEnumerable < string > contents ) ;
455454
456455 /// <inheritdoc cref="File.WriteAllLines(string,IEnumerable{string},Encoding)"/>
@@ -576,6 +575,20 @@ internal FileBase() { }
576575 /// </remarks>
577576 public abstract void WriteAllLines ( string path , string [ ] contents , Encoding encoding ) ;
578577
578+ #if NETCOREAPP2_0 || NETSTANDARD2_1
579+ /// <inheritdoc cref="File.WriteAllLinesAsync(string,IEnumerable{string},CancellationToken)"/>
580+ public abstract Task WriteAllLinesAsync ( string path , IEnumerable < string > contents , CancellationToken cancellationToken ) ;
581+
582+ /// <inheritdoc cref="File.WriteAllLinesAsync(string,IEnumerable{string},Encoding,CancellationToken)"/>
583+ public abstract Task WriteAllLinesAsync ( string path , IEnumerable < string > contents , Encoding encoding , CancellationToken cancellationToken ) ;
584+
585+ /// <inheritdoc cref="File.WriteAllLinesAsync(string,string[],CancellationToken)"/>
586+ public abstract Task WriteAllLinesAsync ( string path , string [ ] contents , CancellationToken cancellationToken ) ;
587+
588+ /// <inheritdoc cref="File.WriteAllLinesAsync(string,string[],Encoding,CancellationToken)"/>
589+ public abstract Task WriteAllLinesAsync ( string path , string [ ] contents , Encoding encoding , CancellationToken cancellationToken ) ;
590+ #endif
591+
579592 /// <inheritdoc cref="File.WriteAllText(string,string)"/>
580593 /// <summary>
581594 /// Creates a new file, writes the specified string to the file using the specified encoding, and then closes the file. If the target file already exists, it is overwritten.
@@ -609,20 +622,6 @@ internal FileBase() { }
609622 /// Given a string and a file path, this method opens the specified file, writes the string to the file, and then closes the file.
610623 /// </para>
611624 /// </remarks>
612-
613- #if NETCOREAPP2_0 || NETSTANDARD2_1
614- /// <inheritdoc cref="File.WriteAllLinesAsync(string,IEnumerable{string},CancellationToken)"/>
615- public abstract Task WriteAllLinesAsync ( string path , IEnumerable < string > contents , CancellationToken cancellationToken ) ;
616-
617- /// <inheritdoc cref="File.WriteAllLinesAsync(string,IEnumerable{string},Encoding,CancellationToken)"/>
618- public abstract Task WriteAllLinesAsync ( string path , IEnumerable < string > contents , Encoding encoding , CancellationToken cancellationToken ) ;
619-
620- /// <inheritdoc cref="File.WriteAllLinesAsync(string,string[],CancellationToken)"/>
621- public abstract Task WriteAllLinesAsync ( string path , string [ ] contents , CancellationToken cancellationToken ) ;
622-
623- /// <inheritdoc cref="File.WriteAllLinesAsync(string,string[],Encoding,CancellationToken)"/>
624- public abstract Task WriteAllLinesAsync ( string path , string [ ] contents , Encoding encoding , CancellationToken cancellationToken ) ;
625- #endif
626625 public abstract void WriteAllText ( string path , string contents ) ;
627626
628627 /// <inheritdoc cref="File.WriteAllText(string,string,Encoding)"/>
0 commit comments