ProtocolBuffers.Code.Comment C# (CSharp) Method

Comment() public static method

public static Comment ( string code ) : string
code string
return string
        public static string Comment(string code)
        {
            string sep = "\n//";
            code = sep + string.Join (sep, code.Split ('\n'));
            return code.Substring (1).TrimEnd('/');
        }