Q:

C# mysql - decompile shows my sql connection string

i have made a program and when i decompiled it with a freeware program(CodeReflect) i was able to see my mysql connection string.  is there a way to avoid this?  Thanks in advance. 

A:

Yes.  You need to have a configuration file, like appFile.config unversioned.  It should be a config file which is not compiled into the project.