コード例 #1
0
ファイル: Commands.cs プロジェクト: dzakic/Sezam
        protected static string GetDisplayName(Type type)
        {
            CommandAttribute cmdAttr = type.GetCustomAttribute(typeof(CommandAttribute)) as CommandAttribute;

            return(cmdAttr.DisplayName ?? type.Name);
        }