Created
April 29, 2020 07:15
typeparamタグの例
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <Summary> | |
/// typeparamタグを使うとメソッドの型パラメータの説明を表示してくれます。 | |
/// </Summary> | |
/// <typeparam name="T">型パラメータの説明がここに表示されます。</typeparam> | |
T[] TypeparamMethod<T>() | |
{ | |
// 指定された型で大きさが5の配列を返します。 | |
return new T[5]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment