* .net shared framework changes * standalone net 5.0 packages * netstanard2.1 diff * improving the directory structure * adding a readme file * aspnetcore shared framework changes * remove wrong process type change diff * adding comments about apis being to inbox from package
4.4 KiB
4.4 KiB
System.IO
namespace System.IO {
public class BinaryReader : IDisposable {
- protected internal int Read7BitEncodedInt();
+ public int Read7BitEncodedInt();
+ public long Read7BitEncodedInt64();
}
public class BinaryWriter : IAsyncDisposable, IDisposable {
- protected void Write7BitEncodedInt(int value);
+ public void Write7BitEncodedInt(int value);
+ public void Write7BitEncodedInt64(long value);
}
public sealed class BufferedStream : Stream {
+ public override void CopyTo(Stream destination, int bufferSize);
+ public override Task CopyToAsync(Stream destination, int bufferSize, CancellationToken cancellationToken);
+ public override int Read(Span<byte> destination);
+ public override ValueTask<int> ReadAsync(Memory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken));
+ public override void Write(ReadOnlySpan<byte> buffer);
+ public override ValueTask WriteAsync(ReadOnlyMemory<byte> buffer, CancellationToken cancellationToken = default(CancellationToken));
}
public static class File {
+ public static void Move(string sourceFileName, string destFileName, bool overwrite);
}
public sealed class FileInfo : FileSystemInfo {
+ public void MoveTo(string destFileName, bool overwrite);
}
public class FileSystemWatcher : Component, ISupportInitialize {
+ public Collection<string> Filters { get; }
}
public static class Path {
+ public static bool EndsInDirectorySeparator(ReadOnlySpan<char> path);
+ public static bool EndsInDirectorySeparator(string path);
+ public static string Join(ReadOnlySpan<char> path1, ReadOnlySpan<char> path2, ReadOnlySpan<char> path3, ReadOnlySpan<char> path4);
+ public static string Join(string path1, string path2);
+ public static string Join(string path1, string path2, string path3);
+ public static string Join(string path1, string path2, string path3, string path4);
+ public static string Join(params string[] paths);
+ public static ReadOnlySpan<char> TrimEndingDirectorySeparator(ReadOnlySpan<char> path);
+ public static string TrimEndingDirectorySeparator(string path);
}
public class StreamReader : TextReader {
- public StreamReader(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks, int bufferSize, bool leaveOpen);
+ public StreamReader(Stream stream, Encoding encoding = null, bool detectEncodingFromByteOrderMarks = true, int bufferSize = -1, bool leaveOpen = false);
}
public class StreamWriter : TextWriter {
- public StreamWriter(Stream stream, Encoding encoding, int bufferSize, bool leaveOpen);
+ public StreamWriter(Stream stream, Encoding encoding = null, int bufferSize = -1, bool leaveOpen = false);
+ public override void Write(string format, object arg0);
+ public override void Write(string format, object arg0, object arg1);
+ public override void Write(string format, object arg0, object arg1, object arg2);
+ public override void Write(string format, params object[] arg);
+ public override void WriteLine(string format, object arg0);
+ public override void WriteLine(string format, object arg0, object arg1);
+ public override void WriteLine(string format, object arg0, object arg1, object arg2);
+ public override void WriteLine(string format, params object[] arg);
}
public class StringWriter : TextWriter {
+ public override void Write(StringBuilder value);
+ public override Task WriteAsync(StringBuilder value, CancellationToken cancellationToken = default(CancellationToken));
+ public override void WriteLine(StringBuilder value);
+ public override Task WriteLineAsync(StringBuilder value, CancellationToken cancellationToken = default(CancellationToken));
}
public abstract class TextWriter : MarshalByRefObject, IAsyncDisposable, IDisposable {
+ public virtual void Write(StringBuilder value);
+ public virtual Task WriteAsync(StringBuilder value, CancellationToken cancellationToken = default(CancellationToken));
+ public virtual void WriteLine(StringBuilder value);
+ public virtual Task WriteLineAsync(StringBuilder value, CancellationToken cancellationToken = default(CancellationToken));
}
}