Appendix A. C# Keywords

abstract

A class modifier that specifies a class cannot be instantiated and the full implementation will be provided by a subclass.

A method modifier that specifies a method is implicitly virtual and without an implementation.

add

An event accessor for customizing the subscription to an event.

alias

Suffixes an extern directive.

as

A binary operator that performs a reference conversion, evaluating to null (rather than throwing an exception) if the conversion fails.

ascending

A query syntax operator used in conjunction with orderby.

base

Accesses a base-class implementation of a member.

Calls the base class’s constructor from a subclass’s constructor.

bool

A logical data type that can be true or false.

break

A jump statement that exits a loop or switch statement block.

by

A query syntax operator used in conjunction with group.

byte

A 1-byte, unsigned integral data type.

case

A selection statement that defines a particular choice in a switch statement.

catch

A keyword for the clause in a try statement to catch exceptions of a specific type.

char

A 2-byte, Unicode character data type.

checked

A statement or operator that enforces arithmetic bounds checking on an expression or statement block.

class

A type declaration keyword for a custom reference type; typically used as a blueprint for creating objects.

A generic type parameter constraint, indicating the generic type must be a reference type.

const

A modifier for a local variable or field declaration whose value is statically evaluated and ...

Get C# 4.0 in a Nutshell, 4th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.