Support for Any-Operator on List-Types

オープン
#598 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
backend

調査の方向性

MemberExpression builder から始めます。ここでは、List のプロパティが通常のメンバーとして扱われると issue で報告されています。Any メソッド呼び出しと、リストのジェネリック型に対するネストされた式がどのように構築されるかを追跡してください。完了には、第 1 レベルのネストされたリストまたは連鎖したネストされたリストについて合意されたスコープを定め、サポートされるケースを網羅する必要があります。

索引モデルが issue の本文から書いたものです。

説明

Are there any plans to support access to properties on Lists like resource.Users.Name? Currently you get the exception "No property or field 'Name' exists in type 'List`1'". Which directs me to the problem, that the MemberExpression builder does not note the List-Type and tries to just build the expression just as usually.

At this point we would need an interception to the Any-Method and then build the nested (Sub)Expression for the generic type of the list. Afterwards it needs to be set as expression to the Any-Method call of the List (Users).

Are there any plans to support this? Maybe for the first level or even for nested lists with chained Any-Method-Calls?

主要言語
C#
スター
4.4k
フォーク
616
平均マージ
6分
マージ済み PR(30日)
2

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microsoft/RulesEngine のほかの issue

microsoft/RulesEngine の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。