Struct DataString
A value type that encapsulates a regular string object. Can implicitly cast to and from a regular
string and is compatible with the ValueItem
and ValueList
API.
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public struct DataString
Constructors
DataString(String)
Initialise this instance with a string.
Declaration
public DataString(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The string to store. |
Methods
ToString()
An override to allow printing this value to simulate the effect of returning the internal string instead.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | The internal string. |
Overrides
System.ValueType.ToString()
Operators
Implicit(DataString to String)
An implicit operator that allows this value to be read from as if it were a string.
Declaration
public static implicit operator string (DataString text)
Parameters
Type | Name | Description |
---|---|---|
DataString | text | The value being read from. |
Returns
Type | Description |
---|---|
System.String |
Implicit(String to DataString)
An implicit operator that allows this value to be written to as if it were a string.
Declaration
public static implicit operator DataString(string text)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | The string being written into this value. |
Returns
Type | Description |
---|---|
DataString |