What you are thinking of is obfuscation.
How to obfuscate C#[
^]
Please note that obfuscation just makes decompiled source rather difficult to figure out, but it's never impossible for someone to do it. Think of it as a very secure password versus a plain text simple dictionary password. One is much easier to figure out than the other, but given enough time and motivation both can be discovered.