コード例 #1
0
ファイル: Bug.cs プロジェクト: jeremy-larose/bugTracker
        /// <summary>
        /// Constructs a bug for the provided bug type and name.
        /// </summary>
        /// <param name="bugType"> The bug type for the activity.</param>
        /// <param name="name"The name for the bug.</param>
        public Bug(BugType bugType, string name = null)
        {
            Id = (int)bugType;

            // If we don't have a name argument,
            // then use the string representation of the bug type for the name.
            Name = name ?? bugType.ToString();
        }
コード例 #2
0
ファイル: MetricWeights.cs プロジェクト: Khaleesh/Mzinga
 public static string GetKeyName(BugType bugType, BugTypeWeight bugTypeWeight)
 {
     return(string.Join(KeySeperator, bugType.ToString(), bugTypeWeight.ToString()));
 }
コード例 #3
0
 private static string GetStringValue(BugType?value)
 {
     return(value?.ToString());
 }