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