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.
Microsoftが「拡張プロパティ」の機能を追加する場合、それらの定義の構文はどのように表示されますか?これはMSDNの記事で、拡張プロパティ(c#4.0から切り取られた機能)に関するものです。
これは純粋な憶測です。私の知る限り、Microsoftでさえ構文がどうなるかはまだわかりません。彼らは新しいキーワードか何か他のものを完全に追加することができます。
ただし、これをさらに詳しく調べると、これは構文の1つの可能なバージョンです。
public static TimeSpan Minutes[this int i] { get { return new TimeSpan(0, i, 0); } }