docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Operator implicit operator

    implicit operator FixedString4096Bytes(in FixedString512Bytes)

    Returns a new FixedString4096Bytes that is a copy of another string.

    Declaration
    public static implicit operator FixedString4096Bytes(in FixedString512Bytes fs)
    Parameters
    Type Name Description
    FixedString512Bytes fs

    A FixedString512Bytes to copy.

    Returns
    Type Description
    FixedString4096Bytes

    A new FixedString4096Bytes that is a copy of the other string.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString4096Bytes.

    implicit operator FixedString512Bytes(string)

    Returns a new FixedString512Bytes that is a copy of another string.

    Declaration
    [ExcludeFromBurstCompatTesting("Takes managed string")]
    public static implicit operator FixedString512Bytes(string b)
    Parameters
    Type Name Description
    string b

    A string to copy.

    Returns
    Type Description
    FixedString512Bytes

    A new FixedString512Bytes that is a copy of another string.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if the string to copy's length exceeds the capacity of FixedString512Bytes.

    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)