Class ListToStringConverter
This class converts list value to string
Inheritance
System.Object
ListToStringConverter
Implements
Microsoft.Maui.Controls.IValueConverter
Namespace: Syncfusion.Maui.Core.Converters
Assembly: Syncfusion.Maui.Core.dll
Syntax
public class ListToStringConverter : Object, IValueConverter
Constructors
ListToStringConverter()
Declaration
public ListToStringConverter()
Properties
Separator
Gets or sets the value the string that separates the substrings
Declaration
public string Separator { get; set; }
Property Value
Type |
---|
System.String |
Methods
Convert(Object, Type, Object, CultureInfo)
This method is used to convert list to string Converts list value to an string value type.
Declaration
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value must be the type of list |
System.Type | targetType | The type of the target property |
System.Object | parameter | An additional parameter for the converter to handle, not used |
System.Globalization.CultureInfo | culture | The culture to use in the converter, not used |
Returns
Type | Description |
---|---|
System.Object | Returns the string value of the list |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The exception is thrown when the value type is null or not a type of color |
ConvertBack(Object, Type, Object, CultureInfo)
Converts back is impossible to revert to original value
Declaration
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | |
System.Type | targetType | |
System.Object | parameter | |
System.Globalization.CultureInfo | culture |
Returns
Type |
---|
System.Object |
Exceptions
Type | Condition |
---|---|
System.NotSupportedException |
Implements
Microsoft.Maui.Controls.IValueConverter