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
Separator
The string delimiter to use when splitting items from the DelimitedText.
Type
The Type of the items within the array.
public Type? Type { get; set; }
Property Value
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
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()