Show / Hide Table of Contents

    Class EncodingExtensions

    Extension methods for the System.Text.Encoding class.

    Inheritance
    System.Object
    EncodingExtensions
    Namespace: Cuemon.Text
    Assembly: Cuemon.Core.dll
    Syntax
    public static class EncodingExtensions

    Methods

    | Improve this Doc

    ToEncodedString(Encoding, String, Action<FallbackEncodingOptions>)

    Converts the specified value to its equivalent encoding representation.

    Declaration
    public static string ToEncodedString(this Encoding encoding, string value, Action<FallbackEncodingOptions> setup = null)
    Parameters
    Type Name Description
    System.Text.Encoding encoding

    The encoding to use in the string that is returned.

    System.String value

    The value to convert into the specified encoding.

    System.Action<FallbackEncodingOptions> setup

    The FallbackEncodingOptions which need to be configured.

    Returns
    Type Description
    System.String

    A string that is encoded according to the value of encoding.

    Remarks

    The inspiration for this method was retrieved @ SO: https://stackoverflow.com/a/135473/175073.

    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX