예제 #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);
        }