C# in Depth C# in Depth JON SKEET MANNING Greenwich (74° w long.) For online information and ordering of this and other Manning books, please visit www.manning.com The publisher offers discounts on this book when ordered in quantity For more information, please contact: Special Sales Department Manning Publications Co Sound View Court 3B fax: (609) 877-8256 Greenwich, CT 06830 email: orders@manning.com ©2008 by Manning Publications Co All rights reserved No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by means electronic, mechanical, photocopying, or otherwise, without prior written permission of the publisher Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in the book, and Manning Publications was aware of a trademark claim, the designations have been printed in initial caps or all caps Recognizing the importance of preserving what has been written, it is Manning’s policy to have the books we publish printed on acid-free paper, and we exert our best efforts to that end Recognizing also our responsibility to conserve the resources of our planet, Manning books are printed on paper that is at least 15% recycled and processed without the use of elemental chlorine Manning Publications Co Sound View Court 3B Greenwich, CT 06830 Copyeditor: Liz Welch Typesetter: Gordan Salinovic Cover designer: Leslie Haimes ISBN 1933988363 Printed in the United States of America 10 – MAL – 13 12 11 10 09 08 392 Visual Studio 2008 (continued) displaying inferred types 211, 225 Intellisense in LINQ 325 LINQ to SQL designer 316 reference properties window 197 update for Entity Framework 348 Visual Studio, version numbers 27 void 147, 189 W warning numbers 198 warning pragmas 197 warnings 144, 197 weak typing 42, 211 of interface 74 web page, comparison with reference types 49 web service proxies 187 web services 179, 269, 344, 346 web site of book 30 WebRequest 258 WebResponse 258 where 15 type constraints 75 Where See Standard Query Operators, Where whitespace 147, 203, 218–219, 267 wiki 49 wildcards 110 will 34, 38 Windows 19, 26, 199, 347 Windows Forms 26, 184 Windows Live ID 24 Windows Presentation Foundation used to write Snippy 30 Windows Presentation Foundation (WPF) 21, 187 Windows Server 2008 200 workflow, of iterators 167 WPF See Windows Presentation Foundation (WPF) INDEX wrapper for faking nullity 13 for value types 115 write once, run anywhere 19 WriteLine 67 X XAML See Extensible Application Markup Language (XAML) XAttribute 338, 340, 342 XComment 338 XDocument 338–339, 343 XElement 338–339, 342 axis methods 342 XML 16, 222, 277, 338 declaration 339 documentation 209 mapping files for ADO.NET Entity Framework 348 metadata for LINQ to SQL 316 used to describe standard libraries 26 XName 338 XPath 343 Y yield statements 165 finally blocks 170–172 restrictions 166 yield break 169–170 yield return 165–169 yield type 166 Z zero representation of null 113 result of comparison 134 .. .C# in Depth C# in Depth JON SKEET MANNING Greenwich (74° w long.) For online information and ordering of this and other Manning books, please visit www .manning. com The publisher offers discounts... ordered in quantity For more information, please contact: Special Sales Department Manning Publications Co Sound View Court 3B fax: (609) 877-8256 Greenwich, CT 06830 email: orders @manning. com ? ?2008 ... planet, Manning books are printed on paper that is at least 15% recycled and processed without the use of elemental chlorine Manning Publications Co Sound View Court 3B Greenwich, CT 06830 Copyeditor: