In This Article

DelimitedArrayExtension Class

A markup extension that can create an array of items from delimited text.

public class DelimitedArrayExtension
Inheritance:
object object

Remarks

The Type of item is determined by the Type property, which documents which types are supported.

Constructors

DelimitedArrayExtension()

Initializes an instance of the class.

public DelimitedArrayExtension()

DelimitedArrayExtension(string)

Initializes an instance of the class, using the specified delimited text.

public DelimitedArrayExtension(string delimitedText)
Parameter Type Description
delimitedText string

The text that contains items delimited by Separator.

Properties

DelimitedText

The text that contains items delimited by Separator.

[ConstructorArgument("delimitedText")]
public string? DelimitedText { get; set; }

Property Value

string

Separator

The string delimiter to use when splitting items from the DelimitedText.

public string Separator { get; set; }

Property Value

string:

The default value is , (comma).

Type

The Type of the items within the array.

public Type? Type { get; set; }

Property Value

Type:

The default value is the string type.

Remarks

These types are supported by this markup extension:

Methods

ProvideValue()

Returns an array of values.

public object? ProvideValue()

Returns

object:

The object value to set on the property where the extension is applied.

Inherited Members

Extension Methods