Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
nameof(ServiceResult<object>.Result)ここ ServiceResult<object>で、 はカスタム タイプで、Resultはこのタイプのフィールドです。ServiceResult<object>は単なる型の宣言であり、演算子 new と () はありませんが、MS の公式ページには、nameof変数とそのメンバーを受け入れると記載されています。なぜこの表現が機能するのですか?そのような宣言は以前に見たことがありません。
nameof(ServiceResult<object>.Result)
ServiceResult<object>
Result
nameof