I would like to know how can I embedd a code source file (if possible), something like that:
class X
{
include "ClassXsource"
}
My second question – Can I build DLL or something like that for my colleagues to use? I need them to be able to call methods from my “part” but do not modify or view their content. Basically just use namespace “MyNamespace” and call its methods, but I have never done anything like that.
Thanks
The C# compiler does not support include files. You can of course use a pre-compiler, that would read your source code files, and insert the included files into them, before passing the new files to the compiler.
As for producing a class library, sure. You can do it in two ways: