A
Andrus
I have SQL strings which contain comments starting with -- and continuing to
end of line like
string mystring=@"SELECT data, -- ending comment
-- line comment
FROM mytable
";
How to remove comment from those strings ?
I need to delete charactes starting from -- and ending with line end in
strings.
In whole line comments emty line may remain or may removed, no difference.
Andrus.
end of line like
string mystring=@"SELECT data, -- ending comment
-- line comment
FROM mytable
";
How to remove comment from those strings ?
I need to delete charactes starting from -- and ending with line end in
strings.
In whole line comments emty line may remain or may removed, no difference.
Andrus.