src/LaunchDarkly.EventSource/EventParser.cs
/// <summary>
/// Determines if the specified value is a Comment in a Server Sent Event message.
/// </summary>
/// <param name="value">A string value.</param>
/// <returns>
///   <c>true</c> if the specified value is a comment; otherwise, <c>false</c>.
/// </returns>
Determines if the specified value is a Comment in a Server Sent Event message.
Determines if the specified value is a Comment in a Server Sent Event message .
public static bool IsComment(string value)
        {
            if (string.IsNullOrWhiteSpace(value)) return false;
            return value.StartsWith(":", StringComparison.OrdinalIgnoreCase);
        }
public static bool IsComment ( string value ) { if ( string . IsNullOrWhiteSpace ( value ) ) return false ; return value . StartsWith ( " " , StringComparison . OrdinalIgnoreCase ) ; }
Determines if the specified value is a Comment in a Server Sent Event message.
Determines if the specified value is a Comment in a Server Sent Event message .
None
value
string
A string value.
A string value .