• Docs
  • Learn
  • Community
    Search Results for

      Show / Hide Table of Contents

      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
      Object
      ExpressionBuilder
      SingleArgumentExpressionBuilder
      SelectBuilder
      MemberSelectorBuilder
      Implements
      IExpressionBuilder
      INamedElement
      Inherited Members
      SelectBuilder.Build(IEnumerable<Expression>)
      SingleArgumentExpressionBuilder.ArgumentRange
      ExpressionBuilder.ToString()
      ExpressionBuilder.Unwrap(ExpressionBuilder)
      ExpressionBuilder.GetWorkflowElement(ExpressionBuilder)
      ExpressionBuilder.GetVisualizerElement(ExpressionBuilder)
      ExpressionBuilder.GetVisualizerMappings(ExpressionBuilder)
      ExpressionBuilder.FromWorkflowElement(Object, ElementCategory)
      ExpressionBuilder.GetElementDisplayName(Type)
      ExpressionBuilder.GetElementDisplayName(Object)
      Object.Equals(Object)
      Object.Equals(Object, Object)
      Object.ReferenceEquals(Object, Object)
      Object.GetHashCode()
      Object.GetType()
      Object.MemberwiseClone()
      Namespace: Bonsai.Expressions
      Assembly: Bonsai.Core.dll
      Syntax
      public class MemberSelectorBuilder : SelectBuilder, IExpressionBuilder, INamedElement

      Properties

      | Improve this Doc View Source

      Selector

      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
      | Improve this Doc View Source

      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 Source

      BuildSelector(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
      SelectBuilder.BuildSelector(Expression)

      Explicit Interface Implementations

      | Improve this Doc View Source

      INamedElement.Name

      Declaration
      string INamedElement.Name { get; }
      Returns
      Type Description
      String

      Implements

      IExpressionBuilder
      INamedElement

      Extension Methods

      ExpressionBuilderGraphExtensions.Build(ExpressionBuilder, Expression[])
      ExpressionBuilderGraphExtensions.IsBuildDependency(ExpressionBuilder)
      ExpressionBuilderGraphExtensions.AsInspectBuilder(ExpressionBuilder)
      • Improve this Doc
      • View Source
      In This Article
      Back to top Generated by DocFX