RE: Any substitutes for #include in C#?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



You can include a source file in multiple projects by doing:
Project
Add Existing Item
browse to the file and select it
instead of doing Open, click the small arrow near it and click Link File

"Byron" wrote:

> I'm working of several projects that use many of the same constants and I
> wanted to put them all into a single file and include them in all the
> projects that need them so I can maintain them in one place. I assume C# has
> some mechanism similar to the #include since it's so handy. Do you just
> create a class that contains the definitions outside the projects in a common
> structure then include the class in all the projects?
>
> Any suggestions would be greatly appreciated.
.



Relevant Pages

  • Re: trouble installing WMP11
    ... Prev version system is ... Setup version 10.00.00.3646.] ... ERROR: WMC_CopyFile: Could not find source file ... Current command line: '/UpdateWMP'. ...
    (microsoft.public.windowsmedia.player)
  • Re: Blue dots in the wrong place
    ... I had copied 4 lines of text from the help into my source file, ... I guess there was a strage character or something I ... Beware... ... Prev by Date: ...
    (comp.lang.pascal.delphi.misc)
  • Re: ftp_put() problems
    ... curious about is why would I need the full path to the source file? ... uploading a file like this: ... just the tmp name of the file. ... Prev by Date: ...
    (comp.lang.php)
  • how to compile
    ... sorry it might not belong to this board, but I don't know where else to ... I have a c source file and a library, how should I compile under linux? ... ld returned 1 exit status ... Prev by Date: ...
    (comp.lang.c)
  • Re: User Controls in 2.0
    ... has anyone tried the MS solution for user controls in multiple projects ... we are about to implement this as standard ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)