Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 29, 2020 07:15
typeparamタグの例
/// <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