C# Compile a class other than DLL
<p>I am new to <strong>C#</strong>.
I am not a good programmer but I have worked on some projects which were in <strong>Delphi7</strong>. In Delphi there is one option; compile the class files to create <strong>.dcu</strong>. Those <strong>.dcu</strong> can be used without having the actual code with any other project in Delphi and after build <strong>.dcu</strong> files need not no given to end user.</p>

<p>Now my actual Question,</p>

<p><em>Is there any way where I can create some compiled file from my C# class and use that compiled unit with some other project in C# ?</em></p>

<p>I already tried to create dll and use. Nice Idea, but I don't want to give any other file than Configuration File and Executable file. Since, I created dll that needs to give with application.</p>

<p>I also tried to create a setup of application which build executable, configuration file and dll together. while executing, it extract itself in %temp% folder and executes from there only. So, In this case I am not able to set the configuration file's values.</p>

<p>Again the same question,</p>

<p><em>Is there any way where I can create some compiled file from my C# class and use that compiled unit with some other project in C# ?</em>
<br>
<br>
<br>
Please suggest the solution</p>

<p>Thanks</p>
