Show / Hide Table of Contents

    Class ByteExtensions

    Bytes 扩展方法

    Inheritance
    Object
    ByteExtensions
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: Lett.Extensions
    Assembly: Lett.Extensions.dll
    Syntax
    public static class ByteExtensions

    Methods

    | Improve this Doc View Source

    EncodeToString(Byte[])

    转换为字符串

    默认Encoding.UTF8

    Declaration
    public static string EncodeToString(this byte[] this)
    Parameters
    Type Name Description
    Byte[] this
    Returns
    Type Description
    String
    Examples
    bytes.ToString(Encoding.UTF8);
    Exceptions
    Type Condition
    ArgumentException

    this

    ArgumentNullException

    this

    DecoderFallbackException
    | Improve this Doc View Source

    EncodeToString(Byte[], Encoding)

    转换为字符串

    Declaration
    public static string EncodeToString(this byte[] this, Encoding encoding)
    Parameters
    Type Name Description
    Byte[] this
    Encoding encoding

    编码格式

    Returns
    Type Description
    String
    Examples
    bytes.ToString(Encoding.UTF8);
    Exceptions
    Type Condition
    ArgumentException

    this

    ArgumentNullException

    this

    ArgumentNullException

    encoding

    DecoderFallbackException
    • Improve this Doc
    • View Source
    Back to top Copyright (c) 2019 viacooky. All rights reserved.