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.
Resharper は委任メンバーを作成できます(Alt + Ins)
しかし、委任メンバーとは何ですか?
私が行う検索のほとんどは、役に立たないアメリカの政治を思いつきます。
委任メソッドは、含まれているオブジェクトに直接トンネリングする単純なメソッドです。
例えば:
class MyClass { private SomeType innerObj = new SomeType(); public Bar GetFoo() { return innerObj.GetFoo(); } }