Show / Hide Table of Contents

    Class StreamExtensions

    Inheritance
    System.Object
    StreamExtensions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Catalyst.Core.Lib.Extensions
    Assembly: Catalyst.Core.Lib.dll
    Syntax
    public static class StreamExtensions

    Methods

    | Improve this Doc View Source

    ReadAllAsUtf8String(Stream, Boolean)

    Declaration
    public static string ReadAllAsUtf8String(this Stream stream, bool leaveOpen)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Boolean leaveOpen
    Returns
    Type Description
    System.String
    | Improve this Doc View Source

    ReadAllBytesAsync(Stream, CancellationToken)

    Declaration
    public static Task<byte[]> ReadAllBytesAsync(this Stream stream, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    System.IO.Stream stream
    System.Threading.CancellationToken cancellationToken
    Returns
    Type Description
    System.Threading.Tasks.Task<System.Byte[]>
    • Improve this Doc
    • View Source
    Back to top Copyright © 2019 Catalyst Network