C # terminology

Source: Internet
Author: User
Access Modifier

Keywords used to restrict access to type or type members, such as private, protected, internal, or public. For more information, see access modifiers.

Accessible members

A member that can be accessed by a given type. One type of accessible members may not be accessible by another type. For more information, see access modifiers and user meta assembly.

Accessors)

Set or retrieve the value of a private data member associated with an attribute. Read/write attributes haveGetAndSetAccessors. OnlyGetAccessors. For more information, see properties.

Anonymous Method

The anonymous method is passed to the delegate as a parameter.CodeBlock. For more information, see the anonymous method.

Base Class

A class that is inherited from other "derived" classes. For more information, see inheritance.

Call Stack

Runtime slaveProgramTo call a series of methods of the statement being executed.

Class)

A data type that describes an object. Classes not only contain data, but also contain methods acting on data. For more information, see class.

Constructor)

Class or structure is a special method used to initialize objects of this type. For more information, see constructor.

Delegate)

A delegate is a type of reference method. Once a method is assigned to the Delegate, the delegate has the same behavior as the delegate. For more information, see delegate.

Derived class

A class that uses inheritance to obtain, extend, or modify the behavior and data of other "base" classes. For more information, see inheritance.

Destructor

Class or structure is a special method used to prepare the instance to be destroyed by the system. For more information, see destructor.

Event)

A member of a class or structure used to send a change notification. For more information, see events.

Field)

A data member that can be directly accessed by class or structure.

Generic)

With generics, you can define classes and/or methods defined using type parameters. When the client code is instantiated, a specific type is specified as the parameter. For more information, see generic.

IDE

Integrated development environment. Provides applications with a unified user interface for various development tools (including compilers, debuggers, code editors, and designers.

Immutable type)

The instance data (fields and attributes) is not changed after being created. Most value types are unchangeable.

Inaccessible Member

A member that cannot be accessed by a given type. One type of inaccessible members is not necessarily inaccessible to the other type. For more information, see access modifiers.

Inheritance

C # supports inheritance. Therefore, classes derived from other classes (also known as base classes) will inherit the same methods and attributes. Inheritance involves the base class and derived class. For more information, see inheritance.

Interface)

A signature type that only contains public methods, events, and delegates. The object that inherits the interface must implement all methods and events defined in the interface. Classes or structures can inherit any number of interfaces. For more information, see interfaces.

Iterator

The iterator is a method that allows users of classes that contain a set or array to use foreach and in (C # reference) to access the set or array cyclically.

Member

Fields, attributes, methods, or events declared on a class or structure.

Method

A named code block that provides behaviors of classes or structures.

Mutable type)

A type in which the instance data (fields and attributes) can be changed after being created. Most reference types are variable types.

Nested type)

The type declared in the declaration of another type.

Object

Class. Objects exist in the memory and have data and methods that act on the data. For more information, see objects, classes, and structures.

Property)

Data members accessed by the accessors. For more information, see properties.

Refactoring)

Reuse the previously entered code. For example, the Visual C # Quick Bi editor intelligently resets the code format and converts highlighted code blocks into methods. For more information, see refactoring.

Reference Type)

A data type. A variable declared as a reference type points to the location where data is stored. For more information, see reference types.

Static

A static class or method does not need to use keywords first.NewIt can exist after being instantiated.Main ()It is a static method. For more information, see static and static class members.

Structure (struct)

A composite data type, usually used to contain multiple variables with a certain logical relationship. The structure can also contain methods and events. The structure does not support inheritance, but supports interfaces. The structure is the value type, and the class is the reference type. For more information, see structure.

Value Type)

the value type is the data type allocated on the stack, which is different from the reference type allocated on the stack. The built-in types (including the value type, the structure type, and the void type) belong to the value type. The class type and string type belong to the reference type. For more information, see value type (C # reference ).

Source Address: http://msdn2.microsoft.com/zh-cn/library/ms173231 (vs.80). aspx

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.