Javatpoint.com is changed to TpointTech.com
C# KeywordsA keyword is a reserved word. You cannot use it as a variable name, constant name etc. In C# keywords cannot be used as identifiers. However, if we want to use the keywords as identifiers, we may prefix the keyword with @ character. A list of Reserved Keywords available in C# programming language is given below: |
abstract | base | as | bool | break | catch | case |
---|---|---|---|---|---|---|
byte | char | checked | class | const | continue | decimal |
private | protected | public | return | readonly | ref | sbyte |
explicit | extern | false | finally | fixed | float | for |
foreach | goto | if | implicit | in | in (generic modifier) | int |
ulong | ushort | unchecked | using | unsafe | virtual | void |
null | object | operator | out | out (generic modifier) | override | params |
default | delegate | do | double | else | enum | event |
sealed | short | sizeof | stackalloc | static | string | struct |
switch | this | throw | true | try | typeof | uint |
abstract | base | as | bool | break | catch | case |
volatile | while |
Some identifiers which have special meaning in context of code are called as Contextual Keywords.
A list of Contextual Keywords available in C# programming language is given below:
add | group | ascending | descending | dynamic | from | get |
---|---|---|---|---|---|---|
global | alias | into | join | let | select | set |
partial (type) | partial(method) | remove | orderby |
Javatpoint.com is now changed to TpointTech.com, so we request you to subscribe our newsletter for further updates.
History of C# language is interesting to know. Here we are going to discuss brief history of C# language. C# is pronounced as "C-Sharp". It is an object-oriented programming language provided by Microsoft that runs on .Net Framework. Anders Hejlsberg is known as the founder of C# language. It...
1 min read
There are many differences and similarities between Java and C#. A list of top differences between Java and C# are given below: No. Java C# 1) Java is a high level, robust, secured and object-oriented programming language developed by Oracle. C# is an object-oriented programming language developed by Microsoft that runs on...
1 min read
A data type specifies the type of data that a variable can store such as integer, floating, character etc. There are 3 types of data types in C# language. Types Data Types Value Data Type short, int, char, float, double etc Reference Data Type String, Class, Object and Interface Pointer Data Type Pointers (adsbygoogle = window.adsbygoogle...
2 min read
: Hello World In C# programming language, a simple "hello world" program can be written by multiple ways. Let's see the top 4 ways to create a simple C# example: Simple Example Using System Using public modifier Using namespace C# Simple Example class Program { ...
3 min read
C# Tutorial C# tutorial provides basic and advanced concepts of C#. Our C# tutorial is designed for beginners and professionals. C# is a programming language of .Net Framework. Our C# tutorial includes all topics of C# such as first example, control statements, objects and classes, inheritance, constructor, destructor, this, static,...
3 min read
C# Variable A variable is a name of memory location. It is used to store data. Its value can be changed and it can be reused many times. It is a way to represent memory location through symbol so that it can be easily identified. The basic variable type...
1 min read
C# operators An operator is simply a symbol that is used to perform operations. There can be many types of operations like arithmetic, logical, bitwise etc. There are following types of operators to perform different types of operations in C# language. Arithmetic Operators Relational Operators Logical Operators Bitwise Operators Assignment Operators Unary Operators Ternary Operators Misc...
1 min read
C# is object oriented programming language. It provides a lot of features that are given below. Simple Modern programming language Object oriented Type safe Interoperability Scalable and Updateable Component oriented Structured programming language Rich Library Fast speed (adsbygoogle = window.adsbygoogle || []).push({}); 1) Simple C# is a simple language in the sense that it provides structured approach (to break...
2 min read
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India