How to make and reference class library DLLs in C # in VS2010

Source: Internet
Author: User

VS2010 C # class Library DLL workpiece

1. Create a class library file


2, write good class: Pay attention to the class level external public properties


3, press F6 generate. dll file, can be found in the debug directory

C # class Library DLL reference methods in VS2010

1. Add a reference to the project's right solution to find the file you just generated or someone else generated


2, reference in the program using using

Using Mydll;//mydll as the namespace of the class library

3. You can see the various properties and characteristics of the referenced class library in the Object Browser


4. After the reference is added, you can invoke the referenced property directly in the program.


How to make and reference class library DLLs in C # in VS2010

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.