Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Including a separate file

Status
Not open for further replies.

Algernon83

Programmer
Jun 25, 2004
50
US
I have one .cs file that defines a class that I want to use in another program. How can I do this? I've spent half an hour on the MSDN site, and I still can't figure out how to do this in this language.
 
C# doesn't have anything like the C/C++ #include preprocessor statement. If you want to reuse the class, you would put it in a class library assembly (dll), and then add a reference to it.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
How frustrating! Thanks for setting me straight, Chip.
 
Just takes some planning!

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top