Skip to content

Instantly share code, notes, and snippets.

@Krita3 Krita3/Entry.cs
Created Sep 7, 2016

Embed
What would you like to do?
Compositeパターン アイテムとアイテムディレクトリの抽象クラス
public abstract class Entry
{
protected string name = "";
public string Name
{
get
{
return this.name;
}
}
// 接頭辞をつけて一覧をログに表示する
public abstract void PrintListLog(string prefix);
// 一覧をログに表示する
public void PrintListLog()
{
PrintListLog("");
}
public override string ToString()
{
return this.Name;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.