{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Method AppendFormat | Collections | 2.3.0-pre.3
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AppendFormat

    AppendFormat<T, U, T0>(ref T, in U, in T0)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0>(this ref T dest, in U format, in T0 arg0) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1>(ref T, in U, in T0, in T1)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1>(this ref T dest, in U format, in T0 arg0, in T1 arg1) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2>(ref T, in U, in T0, in T1, in T2)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3>(ref T, in U, in T0, in T1, in T2, in T3)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4>(ref T, in U, in T0, in T1, in T2, in T3, in T4)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4, T5>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes where T5 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    T5 arg5

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    T5

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5, in T6 arg6) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes where T5 : unmanaged, INativeList<byte>, IUTF8Bytes where T6 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    T5 arg5

    A FixedStringNBytes to interpolate into the format string.

    T6 arg6

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    T5

    The type of value to interpolate into the format string.

    T6

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5, in T6 arg6, in T7 arg7) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes where T5 : unmanaged, INativeList<byte>, IUTF8Bytes where T6 : unmanaged, INativeList<byte>, IUTF8Bytes where T7 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    T5 arg5

    A FixedStringNBytes to interpolate into the format string.

    T6 arg6

    A FixedStringNBytes to interpolate into the format string.

    T7 arg7

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    T5

    The type of value to interpolate into the format string.

    T6

    The type of value to interpolate into the format string.

    T7

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5, in T6 arg6, in T7 arg7, in T8 arg8) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes where T5 : unmanaged, INativeList<byte>, IUTF8Bytes where T6 : unmanaged, INativeList<byte>, IUTF8Bytes where T7 : unmanaged, INativeList<byte>, IUTF8Bytes where T8 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    T5 arg5

    A FixedStringNBytes to interpolate into the format string.

    T6 arg6

    A FixedStringNBytes to interpolate into the format string.

    T7 arg7

    A FixedStringNBytes to interpolate into the format string.

    T8 arg8

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    T5

    The type of value to interpolate into the format string.

    T6

    The type of value to interpolate into the format string.

    T7

    The type of value to interpolate into the format string.

    T8

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(ref T, in U, in T0, in T1, in T2, in T3, in T4, in T5, in T6, in T7, in T8, in T9)

    Interpolates strings into a format string and appends the result to this string.

    Declaration
    public static void AppendFormat<T, U, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(this ref T dest, in U format, in T0 arg0, in T1 arg1, in T2 arg2, in T3 arg3, in T4 arg4, in T5 arg5, in T6 arg6, in T7 arg7, in T8 arg8, in T9 arg9) where T : unmanaged, INativeList<byte>, IUTF8Bytes where U : unmanaged, INativeList<byte>, IUTF8Bytes where T0 : unmanaged, INativeList<byte>, IUTF8Bytes where T1 : unmanaged, INativeList<byte>, IUTF8Bytes where T2 : unmanaged, INativeList<byte>, IUTF8Bytes where T3 : unmanaged, INativeList<byte>, IUTF8Bytes where T4 : unmanaged, INativeList<byte>, IUTF8Bytes where T5 : unmanaged, INativeList<byte>, IUTF8Bytes where T6 : unmanaged, INativeList<byte>, IUTF8Bytes where T7 : unmanaged, INativeList<byte>, IUTF8Bytes where T8 : unmanaged, INativeList<byte>, IUTF8Bytes where T9 : unmanaged, INativeList<byte>, IUTF8Bytes
    Parameters
    Type Name Description
    T dest

    The string to append to.

    U format

    A string to be interpolated and appended.

    T0 arg0

    A FixedStringNBytes to interpolate into the format string.

    T1 arg1

    A FixedStringNBytes to interpolate into the format string.

    T2 arg2

    A FixedStringNBytes to interpolate into the format string.

    T3 arg3

    A FixedStringNBytes to interpolate into the format string.

    T4 arg4

    A FixedStringNBytes to interpolate into the format string.

    T5 arg5

    A FixedStringNBytes to interpolate into the format string.

    T6 arg6

    A FixedStringNBytes to interpolate into the format string.

    T7 arg7

    A FixedStringNBytes to interpolate into the format string.

    T8 arg8

    A FixedStringNBytes to interpolate into the format string.

    T9 arg9

    A FixedStringNBytes to interpolate into the format string.

    Type Parameters
    Name Description
    T

    A FixedStringNBytes type.

    U

    A FixedStringNBytes type.

    T0

    The type of value to interpolate into the format string.

    T1

    The type of value to interpolate into the format string.

    T2

    The type of value to interpolate into the format string.

    T3

    The type of value to interpolate into the format string.

    T4

    The type of value to interpolate into the format string.

    T5

    The type of value to interpolate into the format string.

    T6

    The type of value to interpolate into the format string.

    T7

    The type of value to interpolate into the format string.

    T8

    The type of value to interpolate into the format string.

    T9

    The type of value to interpolate into the format string.

    Remarks

    Similar to StringBuilder.AppendFormat but with significant limitations:

    • Only supports FixedStringNBytes arguments. To use other string types, convert them to FixedStringNBytes first.
    • Only supports numeric format placeholders of the form {0} .. {N}.
    • No format modifiers (e.g. {0:x}) are supported.

    The overloads of this method take up to ten strings to interpolate into the format string.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)