Class MemberSelectorBuilder
Represents an expression builder that defines a simple selector on the elements of an observable sequence by mapping specified member values into the output data type.
The MemberSelector
operator is used to quickly extract member fields and properties out of the elements of the source sequence. Multiple members can be specified using a comma-separated list in the Selector property, in which case the output type will be a tuple of all selected member types.
The TypeMapping property can be used to specify which type conversion to use when chaining the selected members into downstream operators.
Inheritance
Inherited Members
Namespace: Bonsai.Expressions
Assembly: Bonsai.Core.dll
Syntax
public class MemberSelectorBuilder : SelectBuilder, IExpressionBuilder, INamedElement
Properties
| Improve this Doc View SourceSelector
Gets or sets a string used to select the input element members that will be projected as output of the sequence.
Declaration
public string Selector { get; set; }
Property Value
Type | Description |
---|---|
String |
TypeMapping
Gets or sets an optional type mapping specifying the data type which the selected properties will be projected into.
Declaration
[Externalizable(false)]
[TypeConverter(typeof(TypeMappingConverter))]
public TypeMapping TypeMapping { get; set; }
Property Value
Type | Description |
---|---|
TypeMapping |
Methods
| Improve this Doc View SourceBuildSelector(Expression)
Returns the expression that maps the specified input parameter to the selector result.
Declaration
protected override Expression BuildSelector(Expression expression)
Parameters
Type | Name | Description |
---|---|---|
Expression | expression | The input parameter to the selector. |
Returns
Type | Description |
---|---|
Expression | The Expression that maps the input parameter to the selector result. |
Overrides
Explicit Interface Implementations
| Improve this Doc View SourceINamedElement.Name
Declaration
string INamedElement.Name { get; }
Returns
Type | Description |
---|---|
String |