Why developers prefer the C # language

Source: Internet
Author: User



Microsoft encapsulates many of the classes in. NET, while. NET's primary language is C #.

Microsoft has added many Microsoft-specific keywords to C + +, and has evolved VB into vb.net, retaining some basic VB syntax, but in a completely different design, from a practical point of view, vb.net is a new language. Here, Microsoft decides to give the developer another option--specifically for. NET, a language with a new starting point, that is, Visual C #. Net. Microsoft has formally described C # as a simple, modern, object-oriented, type-safe programming language that derives from C and C + +. Most independent commentators say it is "derived from C, C + +, and Java". This comment is technically accurate, but does not involve the true merits of the C # language.

The biggest selling point of C # to Windows programs may be its seamless integration with COM, which is Microsoft's Win32 component technology. In fact, it could end up in any. NET language to write the COM client and server side. A class written in C # can subclass a COM component that exists, and the generated class can be used as a COM component and then used, for example, The JScript language subclasses it to get a third COM component. The result of this phenomenon is that a running environment is generated, and the components in this environment are network services that can be used with any. NET language subclasses.
Microsoft will be the future direction of the upgrade in C #, that is, Microsoft to build C # as the first language

C # also has excellent object-oriented performance, which makes it ideal for building a variety of components, whether advanced business objects or system-level applications, thanks to the excellent object-oriented design of C #. Using a simple C # language structure, these components can be easily converted into XML network services, allowing them to be invoked over the Internet by any language on any operating system.

Most importantly, C # makes it possible for C + + programmers to develop programs efficiently without losing the power of a C + + legacy. Because of this inheritance, C # and C + + have great similarities, and developers familiar with similar languages can quickly move to C #.

C # has both the security of C + + and the rapid development of VB (Visual Basic).

Although VB can be a programmer to quickly develop the program, but VB never realize the real object-oriented, so large applications are difficult to decompose and maintain

C # includes some of the following features:

fully supports class and object-oriented programming, including handling of interfaces and inheritance, virtual functions, and operator overloading.

Defines a complete, consistent set of basic types.

Built-in support for automatic generation of XML document descriptions.

Automatically cleans up dynamically allocated memory.

You can tag a class or method with a user-defined attribute. This can be used for documentation purposes and has some impact on compilation (for example, marking a method as compiled only during debugging).

Full access to the. NET base Class library and easy access to the Windows API.

You can use pointers and direct memory access, and the C # language can access memory without their bars but pieces.

Supports attributes and events in a VB style.

Changing compiler options allows you to compile the program into an executable file or a. NET component library that can be called by other code in the same way as ActiveX controls (COM components).

C # can be used to write ASP. NET Dynamic Web pages and XML Web services. It should be noted that for most of these features, vb.net and Managed C + + are also available. But C # has been using. NET from the start, and support for. NET features is not only complete, but also provides a more appropriate syntax than other languages.

Conclusion

C # is a modern object-oriented language. It makes it quick and easy for programmers to create Microsoft-based. NET platform solution. This framework enables C # components to be easily translated into XM L network services so that any platform application can invoke it over the Internet.

C # enhances developer productivity while also working to eliminate errors that can lead to serious results in programming. C # enables C/D + + programmers to develop their network quickly, while maintaining the power and flexibility that developers need.

Why developers prefer the C # language

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.