Depth. NET platform and C # programming the first chapter of the second chapter after the brief answer

Source: Internet
Author: User
 
  1. Operation Result:
      x=30,y=30

  2. The main difference between value type and reference type: The
     value type is cash, use direct use; the
     reference type is passbook and you have to go to the bank first.

  3. The difference between structure and class: Class

  : Class
  is the reference type is allocated on the heap, the instance of the class is assigned to just copy the reference,
  all point to the same memory allocated by the actual object, the class has the construction and destructor, the
  class can inherit and inherit.

  Structure: The
  structure is the value type is allocated on the stack (although the stack's access speed is faster than the heap,
  but the stack's resources are limited), the assignment of the structure will be assigned to generate a new object.
  structs do not have constructors, but they can be added. Structs cannot be inherited from another   struct or inherited, but like classes can inherit from interfaces.
  



1. Brief description. NET Framework Architecture:. NET Framework is a multilingual component development and execution environment that provides a unified programming environment across languages. NET Framework is designed to make it easier for developers to build Web applications and Web services, making it possible to communicate with Web services across applications on the Internet. From a hierarchical perspective,. NET Framework includes three main components: the common language runtime (Clr:common Language Runtime), the service framework, and the top two types of application templates-traditional Windows application templates (Win Forms) and web-oriented network application templates (Web Forms and Web Services) based on ASP net. 2. Briefly describe the purpose of the CLR: ①.CLR is called the common language runtime, it is all. NET application Runtime environment is the programming foundation that all. NET applications use, like a virtual machine that supports the running and development of. NET applications. ②.CLR provides a programming model to be used by all types of applications ③.CLR all operations of a managed application require the monitoring and processing of the CLR. These operations include loading of in-process applications, IL Language conversion to machine language, exception management, garbage collection, loading assemblies, and so on
 

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.