Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 29, 2020 06:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todorok1/04df4af7f9737796c86b4c0448bc5490 to your computer and use it in GitHub Desktop.
Save todorok1/04df4af7f9737796c86b4c0448bc5490 to your computer and use it in GitHub Desktop.
ドキュメントコメントの例
/// <Summary>
/// ドキュメントコメントについて解説するためのクラスです。
/// </Summary>
public class DocCommentClass : MonoBehaviour
{
/// <Summary>
/// フィールドの説明も書けます。
/// </Summary>
public int docId;
/// <Summary>
/// summaryタグを使うとメソッドやクラスの説明を表示してくれます。
/// </Summary>
void SummaryMethod()
{
// 何らかの処理
}
void CallSummaryMethod()
{
// SummaryMethod()を呼びます。
SummaryMethod();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment