13.07.2015 Views

C# in Depth

C# in Depth

C# in Depth

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

376INDEXDataTableExtensions 334–335DateTime 51, 82, 116, 125, 283non-nullability 113DateTimeRange 301DBNull 114, 334–335debugger 198, 321declarationof local variables 211, 213of partial methods 189declarative 14declarative programm<strong>in</strong>g 313decompilation 123, 225deduction event handlers 139defaultaccess modifier 193mode of parameter pass<strong>in</strong>g 54default constructor 191of Nullable 116, 120, 122Default property of EqualityComparer andComparer 83default value expressions 81default values 172, 210for type parameters 75See also default value expressionsDefaultIfEmpty. See Standard Query Operators,DefaultIfEmptydeferred execution 264, 267, 279, 290, 303,312, 337def<strong>in</strong>ite assignment 210output parameters 81variables 65degenerate query expressions 291delegate creation expression 143delegate <strong>in</strong>stance 34–38, 284always referr<strong>in</strong>g to a method 35clums<strong>in</strong>ess of <strong>C#</strong> 1 54created by anonymous methods 146delegate keyword 146, 149for anonymous methods 10delegate type <strong>in</strong>ference 227delegate types 34compatibility 143declaration 34, 37<strong>in</strong>fererred by the compiler 139delegate, used for sort<strong>in</strong>g 9delegates 354action 35, 140, 142as generic types 67as reference types 49<strong>C#</strong> 2 improvements 137–160<strong>C#</strong> <strong>in</strong>vocation shorthand 36candidate signatures 35comb<strong>in</strong><strong>in</strong>g 38–40compil<strong>in</strong>g from expression trees 240–241contravariance 35, 55, 138covariance 138creat<strong>in</strong>g <strong>in</strong>stances 34creat<strong>in</strong>g one <strong>in</strong>stance from another 143events 40–41examples of comb<strong>in</strong>ation and removal 39exceptions 40function po<strong>in</strong>ter 33immutability 38<strong>in</strong> <strong>C#</strong> 1 33–42<strong>in</strong> the framework 138, 145, 153, 160<strong>in</strong>stances. See delegate <strong>in</strong>stances<strong>in</strong>vocation 34, 36–38, 138, 154Invoke method 36lambda expressions 232–238method group conversions 73specify<strong>in</strong>g behavior 33summary of <strong>C#</strong> 1 features 41target 140target of action 36types. See delegate typesused <strong>in</strong> List 96used <strong>in</strong> the CCR 181us<strong>in</strong>g for specialization 355DELETE 319Dequeue 100derivation type constra<strong>in</strong>ts 77example with default values 81restrictions 78DescendantNodes 342DescendantNodesAndSelf 342Descendants 342DescendantsAndSelf 342descend<strong>in</strong>g order<strong>in</strong>g 294design layers 353design overhead 255design patterns 161, 181, 222, 274designers 186DataSets 335LINQ to SQL 316, 319W<strong>in</strong>dows Forms 184developers 353development platform 26diagrams, LINQ to SQL 316dictionaries 219Dictionary 66, 99, 211Dictionary`2 93DictionaryEntry 67directories, LDAP 347disabl<strong>in</strong>g warn<strong>in</strong>gs 198disassembly 123discretion 208discussion groups 113Dispose 25, 92, 168, 171, 193Dist<strong>in</strong>ct. See Standard Query Operators, Dist<strong>in</strong>ctDLR. See Dynamic Language Runtime (DLR)Licensed to Rhona Hadida

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!