/// <summary> /// Convert an enum of type DefinitionMonitorProtocol to a string. /// </summary> /// <param name='value'> /// The value to convert to a string. /// </param> /// <returns> /// The enum value as a string. /// </returns> internal static string DefinitionMonitorProtocolToString(DefinitionMonitorProtocol value) { if (value == DefinitionMonitorProtocol.Http) { return("HTTP"); } if (value == DefinitionMonitorProtocol.Https) { return("HTTPS"); } throw new ArgumentOutOfRangeException("value"); }