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. |