C # Keywords List

Source: Internet
Author: User
Tags goto keywords list

bstract
as
Base
BOOL
Break
byte
Case
Catch
Char
checked
class
Const
Continue
decimal
default
Delegate
Do
Double
Else
enum
ecent
Explicit
extern
false
finally
fixed
float
for
foreach
Get
Goto
if
Implicit
inch
int
Interface
Internal
is
Lock
Long
namespace
New
NULL
Object
out
Override
Partial
Private
protected
Public
ReadOnly
ref
return
sbyte
Sealed
Set
Short
sizeof
stackalloc
Static
struct
Switch
This
Throw
true
Try
typeof
UINT
ULONG
unchecked
unsafe
ushort
using
value
Virtual
volatile
volatile
void
where
while
yield

Several of them are more easily mistaken.

Keyword description

Abstract can be used with classes, methods, properties, indexers, and events.

Identifies a class or method that must be implemented that can be extended but not manifested.

As a conversion operator, NULL is returned if the conversion fails.

Base is used to access a group member that is hidden by a member of the same name in a derived class or construct.

Catch defines a block of code that executes in-block code when a particular type of exception is thrown.

See try and finally.

Checked is both an operator and a statement.

Ensures that when the compiler runs, the overflow that occurs when an integer type operation or conversion is checked.

The const identifies a variable value that can be computed at compile time, that is, a value that cannot be modified once it is assigned.

delegate specifies that a declaration is a delegate type. The delegate encapsulates the method as a callable entity,

Can be called in the delegate entity.

An enum represents a value type for a named constant cluster.

Event allows a class or object to provide a member of the notification, and he must be a delegate type.

Explicit a operator that defines a user-defined conversion operator,

Typically used to convert an built-in type to a user-defined type or to a reverse operation.

The display conversion operator must be called when the conversion is re-converted.

extern identifies a method that will be implemented externally (usually not in the C # language).

Finally defines a block of code that executes when program control leaves the try code fast. See try and catch.

Fixed assigns a pointer to a variable at a fixed memory location when a block of code executes.

foreach is used to traverse the elements of a cluster.

Goto a jump statement that redirects program execution to a label statement.

Implicit an operator that defines a user-defined conversion operator.

Typically used to convert a predefined type to a user-defined type or to a reverse operation.

The implicit conversion operator must be used at the time of conversion.

interface specifies a declaration as an interface type, which is the contract that the implementation class or construct must follow.

Internal an access modifier.

namespace defines the type and namespace of a logical group.

Operator is used to declare or load an operator.

Out identifies the parameters that are affected by a parameter value, but when the method is passed in,

This parameter does not have to be initialized first.

The params declares an array of arguments. If used, the last parameter specified must be modified.

Optional parameters are allowed.

ReadOnly identifies the value of a variable that cannot be modified after initialization.

Ref identifies a parameter that may be affected by a parameter value.

Sealed prevents types from being derived, preventing methods and property from being overwritten.

sizeof an operator that returns the length of a value type in bytes.

Stackalloc returns a pointer to a block of memory allocated on the heap.

A struct struct is a value type that can declare constants, fields, methods, property,

Indexers, operators, constructors, and inline types.

Throw throws an exception.

One of the parts of the try exception handling code block. The try code block includes possible

The code that throws the exception. See Catch and finally keywords.

typeof an operator that returns the type of the passed-in parameter.

Unchecked no overflow check.

Unsafe labels a code block, method, or class that contains pointer operations.

Using when used with namespaces, the Using keyword allows access to the types in that namespace,

Without specifying its full name. Also used to define the scope of the finalization operation.

Virtual a method modifier that identifies a method that can be overwritten.

Volatile identifies a attribute that can be modified by the operating system, certain hardware devices, or concurrent threads.

C # Keywords List

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.