Class OptionalStringConverter
UXML attribute converter for optional string values.
Inheritance
OptionalStringConverter
Inherited Members
Namespace: Unity.AppUI.Editor
Assembly: Unity.AppUI.Editor.dll
Syntax
public class OptionalStringConverter : OptionalConverter<string>
Methods
TryParse(string, out string)
Tries to parse the attribute value as a string.
Declaration
protected override bool TryParse(string value, out string v)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | The string to parse. |
| string | v | The attribute value, unchanged. |
Returns
| Type | Description |
|---|---|
| bool | True if the value is neither null nor empty, False otherwise. |