//============================================================================== // 関数 //============================================================================== /// <summary> /// コンストラクタ /// </summary> public BuildCommandResult ( string tag, BuildCommandResultType type, string message ) { Tag = tag; Message = message; Type = type; }
/// <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); } }