Index of 6.0 Topics

Operators

?. (question mark, dot), null-conditional operator, 125128

. (dot) dot operator, 126

A

ArgumentNullException, 434435, 436

ArgumentOutOfRangeException, 435, 436

Arrays, initializing anonymous type, 579580

Automatically implemented properties

initializing, 242

NextId implementation, 273

read-only, 248, 280

B

Boolean expressions, logical operators

?. (question mark, dot), null-conditional operator, 125128

. (dot) dot operator, 126

C

Catching exceptions. See also Exception handling; Throwing exceptions.

conditional clauses, 438

exception conditions, 438

rethrowing existing exceptions, 438439

System.InvalidOperationException, 438

when clauses, 438

Classes, inextensible, 273275

Collection initializers, initializing anonymous type arrays, 579580

Conditional clauses, catching exceptions, 438

D

default operator, 360361

Delegates, with the null-conditional operator, 128

E

Exception handling. See also Catching exceptions; Throwing exceptions.

guidelines, 445

passing null exceptions, 434

I

Immutability of value types, 357

Invoke() method, 548549

M

Methods, declaring

example, 169170

expression bodied methods, 174

Move() method, 357

N

nameof operator, 246247, 435, 436, 694696

Namespaces, dropping, 5354. See also using directive.

.NET versions, 29

new operator, 359360

NextId implementation, 273

NextId initialization, 273

null, checking code for, 548

NullReferenceException, 128, 434, 436

O

OutOfMemoryException, 435

P

Properties

automatically implemented, 242, 248, 273, 280

nameof operator, 246247

read-only, 248, 280

Publishing code, checking for null, 548

R

readonly modifier, 280

Read-only properties, 248, 280

S

struct keyword, 356

Structs

declaring, 356

default value for, 360361

definition, 356

finalizer support, 360

initializing, 357359

referential identity, 360

System.ApplicationException, 435, 436

System.ArgumentException, 436

System.Environment.FailFast() method, 435, 436

System.Exception, 435, 436

System.ExecutionEngineException, 435

System.InvalidOperationException, 438

System.OutOfMemoryException, 435

System.Runtime.InteropServices.COMException, 435

System.Runtime.InteropServices.SEHException, 435

System.StackOverflowException, 435

System.SystemException, 435, 436

T

TextNumberParser.Parse() method, 434

Throwing exceptions

ArgumentNullException, 434435, 436

ArgumentOutOfRangeException, 435, 436

code sample, 434

identifying the parameter name, 435

nameof operator, 435, 436

NullReferenceException, 434, 436

rethrowing, 438439

System.ApplicationException, 435, 436

System.ArgumentException, 436

System.Environment.FailFast() method, 435, 436

System.Exception, 435, 436

System.ExecutionEngineException, 435

System.OutOfMemoryException, 435

System.Runtime.InteropServices.COMException, 435

System.Runtime.InteropServices.SEHException, 435

System.StackOverflowException, 435

System.SystemException, 435, 436

Type names, abbreviating, 178179

U

using directive

dropping namespaces, 5354

example, 5354

using static directive

abbreviating a type name, 178179

dropping namespaces, 5354

example, 5354, 178179

V

Value types

default operator, 360361

immutability, 357

new operator, 359360

W

when clauses, 438

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset