Пример #1
0
        /// <summary>
        /// Toes the code.
        /// </summary>
        /// <param name="stage">The stage.</param>
        /// <returns></returns>
        public static string ToCode(this DevelopmentStage stage)
        {
            switch (stage)
            {
            case DevelopmentStage.PreAlpha: return("D");

            case DevelopmentStage.Alpha: return("A");

            case DevelopmentStage.Beta: return("B");

            case DevelopmentStage.Release: return("P");

            default: throw new ArgumentOutOfRangeException("stage", "unknown target");
            }
        }
 /// <summary>
 ///     使用<see cref="DevelopmentStage" />初始化一个WorkingInProgressAttribute
 /// </summary>
 /// <param name="stage">开发阶段</param>
 /// <param name="time">标记时间</param>
 public WorkingInProgressAttribute(DevelopmentStage stage, string time)
 {
     Stage  = stage;
     MarkAt = time;
 }