Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="stage"></param>
        /// <returns></returns>
        public static string VersionStageToChar(VersionStage stage)
        {
            switch (stage)
            {
            case VersionStage.Alpha:
                return("A");

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

            case VersionStage.ReleaseCandidate:
                return("RC");

            case VersionStage.Gamma:
                return("C");

            case VersionStage.Delta:
                return("D");

            case VersionStage.Stable:
                return("");
            }
            return("");
        }
Exemple #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="stage"></param>
        /// <returns></returns>
        public static string VersionStageToString(VersionStage stage)
        {
            switch (stage)
            {
            case VersionStage.Alpha:
                return("alpha");

            case VersionStage.Beta:
                return("beta");

            case VersionStage.ReleaseCandidate:
                return("release-candidate");

            case VersionStage.Gamma:
                return("gamma");

            case VersionStage.Delta:
                return("delta");

            case VersionStage.Stable:
                return("stable");
            }
            return("stable");
        }