ProtocolBuffers.ProtoParser.ParseComment C# (CSharp) Method

ParseComment() static private method

Return true if token was a comment
static private ParseComment ( string token ) : bool
token string
return bool
        static bool ParseComment(string token)
        {
            if (token.StartsWith ("//") == false)
                return false;
            token = token.TrimStart ('/');
            if (lastComment == null)
                lastComment = token;
            else
                lastComment += "\r\n" + token;
            return true;
        }