Table of Contents

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

context ITypeDescriptorContext

Context that provides the context for the conversion. Typically, this interface is used at design time to provide information about the design-time container.

sourceType Type

Source 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

context ITypeDescriptorContext

Context that provides the context for the conversion. Typically, this interface is used at design time to provide information about the design-time container.

culture CultureInfo

The current culture.

value object

Value to convert.

Returns

object

Converted value.