We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class StringExtensions

    String Extensions.

    Inheritance
    Object
    StringExtensions
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit
    Assembly: cs.temp.dll.dll
    Syntax
    public static class StringExtensions

    Methods

    DecodeFrom64(String)

    Decodes string from base 64 ASCII.

    Declaration
    public static string DecodeFrom64(this string encodedData)
    Parameters
    Type Name Description
    String encodedData

    String to decode.

    Returns
    Type Description
    String

    Decoded string.

    EncodeTo64(String)

    Encodes the string to base 64 ASCII.

    Declaration
    public static string EncodeTo64(this string toEncode)
    Parameters
    Type Name Description
    String toEncode

    String to encode.

    Returns
    Type Description
    String

    Encoded string.

    NormalizeSeparators(String)

    Ensures directory separator chars in provided string are platform independent. Given path might use \ or / but not all platforms support both.

    Declaration
    public static string NormalizeSeparators(this string path)
    Parameters
    Type Name Description
    String path
    Returns
    Type Description
    String

    ToProperCase(String)

    Capitalize the first character and add a space before each capitalized letter (except the first character).

    Declaration
    public static string ToProperCase(this string value)
    Parameters
    Type Name Description
    String value
    Returns
    Type Description
    String
    In This Article
    Back to top Generated by DocFX