예제 #1
0
 //==============================================================================
 // 関数
 //==============================================================================
 /// <summary>
 /// コンストラクタ
 /// </summary>
 public BuildCommandResult
 (
     string tag,
     BuildCommandResultType type,
     string message
 )
 {
     Tag     = tag;
     Message = message;
     Type    = type;
 }
예제 #2
0
        /// <summary>
        /// アッパーキャメルケースの文字列を返します
        /// </summary>
        public static string ToUpperCamel(this BuildCommandResultType self)
        {
            switch (self)
            {
            case BuildCommandResultType.SUCCESS: return("Success");

            case BuildCommandResultType.WARNING: return("Warning");

            case BuildCommandResultType.ERROR:   return("Error");

            default:                             throw new ArgumentOutOfRangeException(nameof(self), self, null);
            }
        }