C # keywords Visual Studio 2012

Source: Internet
Author: User


C # Keywords Visual Studio 2012 Other version keywords are predefined reserved identifiers that have special meaning to the compiler. They cannot be used as identifiers in programs unless they have an @ prefix. For example, @if is a valid identifier, but if is not, because if is a keyword. The first table in this topic lists the keywords that are reserved identifiers in any part of a C # program. The second table in this topic lists the context keywords in C #. The context keyword has special meaning only in the context of a restricted program and can be used outside the context as an identifier. In general, when new keywords are added to the C # language, they are also added as context keywords to avoid breaking programs written in earlier versions of the language. Abstract as base bool break Byte case Catch Char checked class const continue decimal default delegate do double Else enum Event explicit extern false finally fixed float for foreach goto if implicit in (generic modifier) int interface internal is lock Long namespace new null Object operator out (generic modifier) override params private protected public readonly ref return sbyte Sealed short sizeof stackalloc static string struct switch this throw true try typeof uint ulong unchecked unsafe ushort u Sing virtual void volatile while context keyword---------------------------------------------------------------------------- The----context keyword is used to provide a specific meaning in the code, but it is not a reserved word in C #. Some context keywords, such as partial and where, have special meanings in two or more contexts. Add Alias Ascending Async AWAIt descending dynamic from Get global group to join let's to the partial (type) Partial (method) remove Select Set Value var wher E (generic type constraint) where (query clause) yield see--------------------------------------------------------------------------------concepts C # Programming Guide additional Resources C # Reference




C# keyword


Visual Studio 2012


Other version

A keyword is a predefined reserved identifier that has special meaning to the compiler. They cannot be used as identifiers in programs unless they have an @ prefix. For example, @if is a valid identifier, but if is not, because if is a keyword.

The keywords listed in the first table in this topic are reserved identifiers in any part of the C# program. The second table in this topic lists the context keywords in C#. Context keywords have a special meaning only in restricted program contexts and can be used as identifiers outside of this context. Often, when new keywords are added to the C# language, they are also added as contextual keywords to avoid breaking programs written in earlier versions of the language.


Abstract
 
As
 
Base
 
Bool
 

Break
 
Byte
 
Case
 
Catch
 

Char
 
Checked
 
Class
 
Const
 

Continue
 
Definite
 
Default
 
Delegation
 

Do
 
Double
 
Else
 
Enum
 

Event
 
Explicit
 
Extern
 
False
 

Finally
 
Fixed
 
Flo
 
For
 

Foreach
 
Goto
 
If
 
Implicit
 

In
 
In (generic modifier)
 
Int
 
Interface
 

Internal
 
Is
 
Lock
 
Long
 

Namespace
 
New
 
Null
 


Object
 
 

Operator
 
Out
 
Out (generic modifier)
 
Override
 

Params
 
Private
 
Protected
 
Public
 

Readonly
 
Ref
 
Return
 
Sbyte
 

Sealed
 
Short
 
Sizeof
 
Stackalloc
 

Static
 
String
 
Struct
 
Switch
 

This
 
Throw
 
True
 
Try
 

Typeof
 
Uint
 
Ulong
 
Unchecked
 

Unsafe
 
Ushort
 
Using
 
Virtual
 

Void
 
Volat
 
While
 

 



 Contextual keyword
 

-------------------------------------------------- ------------------------------

 
Context keywords are used to provide specific meaning in code, but it is not a reserved word in C#. Some context keywords (such as partial and where) have special meaning in two or more contexts.


Add
 
Alias
 
Ascending
 

Async
 
Await
 
Descending
 

Dynamic
 
From
 
Get
 

Global
 
Group
 
Into
 

Join
 
Let
 
Orderby
 

Partial
 
Partial
 
Remove
 

Select
 
Set
 
Value
 

Var
 
Where (generic type constraint)
 
Where (query clause)
 

Yield
 

 



 See  



-------------------------------------------------- ------------------------------
 

 
concept

C# Programming Guide

Other resources

C# reference 





C # keywords Visual Studio 2012


Related Article

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.