C # simple component call

Source: Internet
Author: User

C # in the video, there is a set of calls to components, a simple small program, but it feels very interesting. Let's record it a little.

In the process of team development, we can split a project into countless work components and allocate them to every development group. Then it is developed into components, and then assembled through certain assembly. Compiling a software is like building a building. It completes the system functions step by assembling components.

First, create a class library and save it after it is generated successfully.

Namespace TiGaoBan {public class TGB {public static void show () {Console. WriteLine ("welcome to the Advanced Course! ") ;}Public static void show (string message) {Console. WriteLine (message );}}}


Create a console application.

Namespace ConsoleApplication4 {class Program {static void Main (string [] args ){}}}


Again, add reference and find the class library. dll file we just created.

Then, declare the namespace with the using keyword. You can directly call the class library.

Finally, generate and run the results

Related Article

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.