/// <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(); }
public static string GetKeyName(BugType bugType, BugTypeWeight bugTypeWeight) { return(string.Join(KeySeperator, bugType.ToString(), bugTypeWeight.ToString())); }
private static string GetStringValue(BugType?value) { return(value?.ToString()); }