Class ReadOnlyArrayConverter
- Namespace
- GroupeIsa.Neos.Shared.Collections
- Assembly
- GroupeIsa.Neos.Shared.dll
Converter for the ReadOnlyArray type.
public class ReadOnlyArrayConverter : TypeConverter
- Inheritance
-
ReadOnlyArrayConverter
- Inherited Members
Methods
CanConvertFrom(ITypeDescriptorContext?, Type)
Returns whether this converter can convert an object of the given type to the type of this converter, using the specified context.
public override bool CanConvertFrom(ITypeDescriptorContext? context, Type sourceType)
Parameters
contextITypeDescriptorContextContext that provides the context for the conversion. Typically, this interface is used at design time to provide information about the design-time container.
sourceTypeTypeSource type you want to convert from..
Returns
- bool
true if this converter can perform the conversion; otherwise, false.
ConvertFrom(ITypeDescriptorContext?, CultureInfo?, object)
Converts the given object to the type of this converter, using the specified context and culture information.
public override object? ConvertFrom(ITypeDescriptorContext? context, CultureInfo? culture, object value)
Parameters
contextITypeDescriptorContextContext that provides the context for the conversion. Typically, this interface is used at design time to provide information about the design-time container.
cultureCultureInfoThe current culture.
valueobjectValue to convert.
Returns
- object
Converted value.