Improve description of `limitations of extensions`
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 84/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- csharp
調査の方向性
docs/csharp/advanced-topics/interface-implementation/mixins-with-default-interface-methods.md を読み、拡張メンバーの解決に関する段落を、issue で提案された文言とあわせて確認してください。変数の宣言型が呼び出されるメソッドにどのように影響するかを明確に説明するよう、説明を更新してください。提起された混乱に対処し、記事の用語に合わせた説明になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Type of issue
Missing information
Description
I tried to understand the following sentences but it was not easy for me. For instance I missed the part that the method was not specified on interface so the method call resolved to e anxtension method.
Extension members are resolved at compile time, using the declared type of the variable. Classes that implement the interface can provide a better implementation for any extension member. Variable declarations must match the implementing type to enable the compiler to choose that implementation. When the compile-time type matches the interface, method calls resolve to the extension member.
I suggest we replace with
The compiler chooses an extension method based on the variable's declared type, not the object's actual type. If a class has its own method with the same name as an extension method, that method is used only when the variable is declared as that class. If the variable is declared as the interface, the compiler can't see the class's method, so it calls the extension method.
What do you think of it? Appreciate any feedbacks!
Page URL
Content source URL
Document Version Independent Id
98229926-6c7a-3ad1-ab5c-86231253986c
Platform Id
5f097f47-9790-5a92-55f5-70776d1c799f
Article author
@BillWagner
Metadata
- ID: 2c7899e8-3f01-41d2-137a-e334b73699a4
- PlatformId: 5f097f47-9790-5a92-55f5-70776d1c799f
- Service: dotnet-csharp
- Sub-service: advanced-concepts
- 主要言語
- 言語のデータがありません
- スター
- 4.8k
- フォーク
- 6.1k
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 215
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
dotnet/docs のほかの issue
-
dgオープンdotnet-fundamentals/svc needs-more-info
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
dotnet/docs#56549 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Document unit-test / theory-data impact of .NET 11 double→decimal conversion対応中かも @SkyDevLab が 6 日前に担当しました。 オープン:watch: Not Triaged dotnet-fundamentals/svc
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
dotnet-fundamentals/svc install/subsvc
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
dotnet/docs#56344 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Upgrade from `net9.0` to LTS (or STS) image tag対応中かも @ShyneChikwapulo が 14 日前に担当しました。 オープンdotnet-target-version
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
dotnet/docs#56293 · コメント 3 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Documentation for dotnet sln add doesn't mention the --include-references flag対応中かも @BartoszKlonowski が 14 日前に担当しました。 オープンdotnet-fundamentals/svc
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
dotnet/docs#56289 · コメント 2 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
difficulty:2 enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
MakazhanAlpamys/Soup#2309 ·
メンテナーはふだん 1 日以内に返信
-
[Integration]: eRPCオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ava-labs/builders-hub#4826 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ophub/amlogic-s9xxx-armbian#3752 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信