mirror of
https://github.com/inthehand/32feet.git
synced 2026-10-20 23:56:14 +08:00
28 lines
508 B
C#
28 lines
508 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace ConsoleMenuTesting
|
|
{
|
|
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
|
|
class SubMenuAttribute : Attribute
|
|
{
|
|
private string m_menuName;
|
|
|
|
public SubMenuAttribute()
|
|
{
|
|
}
|
|
|
|
public SubMenuAttribute(string menuName)
|
|
{
|
|
m_menuName = menuName;
|
|
}
|
|
|
|
public string MenuName
|
|
{
|
|
get { return m_menuName; }
|
|
}
|
|
|
|
}
|
|
}
|