2010 - C# 2010 AIO For Dummies (Wiley).pdf

(12318 KB) Pobierz
C# 2010 All-In-One For Dummies
M a k i n g E ve r y t h i n g E a s i e r !
C # 2 0 1 0
8 IN 1
Basics of C# Programming
Object Oriented C#
Designing for C#
A Tour of Visual Studio ®
Windows Programming
Web Programming
Service Oriented Development
C# 4.0
Bill Sempf
Chuck Sphar
Stephen Randy Davis
BOOKS
568141865.048.png 568141865.059.png 568141865.069.png 568141865.079.png 568141865.001.png 568141865.002.png 568141865.003.png 568141865.004.png 568141865.005.png 568141865.006.png 568141865.007.png 568141865.008.png 568141865.009.png 568141865.010.png 568141865.011.png 568141865.012.png 568141865.013.png
 
568141865.014.png 568141865.015.png 568141865.016.png 568141865.017.png 568141865.018.png 568141865.019.png 568141865.020.png
 
568141865.021.png 568141865.022.png 568141865.023.png 568141865.024.png 568141865.025.png 568141865.026.png 568141865.027.png 568141865.028.png 568141865.029.png 568141865.030.png 568141865.031.png 568141865.032.png
Get More and Do More at Dummies.com ®
Start with FREE Cheat Sheets
Cheat Sheets include
Checklists
Charts
Common Instructions
And Other Good Stuff!
To access the Cheat Sheet created specifically for this book, go to
Get Smart at Dummies.com
Dummies.com makes your life easier with 1,000s
of answers on everything from removing wallpaper
to using the latest version of Windows.
Check out our
Videos
Illustrated Articles
Step-by-Step Instructions
Plus, each month you can win valuable prizes by entering
ou r Dummies.com s weepstakes. *
Want a weekly dose of Dummies? Sign up for Newsletters on
Digital Photography
Microsoft Windows & Office
Personal Finance & Investing
Health & Wellness
Computing, iPods & Cell Phones
eBay
Internet
Food, Home & Garden
Find out “HOW” at Dummies.com
*Sweepstakes not currently available in all countries; visit Dummies.com f or official rules.
568141865.033.png 568141865.034.png 568141865.035.png 568141865.036.png 568141865.037.png 568141865.038.png 568141865.039.png 568141865.040.png 568141865.041.png 568141865.042.png 568141865.043.png 568141865.044.png 568141865.045.png
 
C# 2010
FOR
DUMmIES
by Bill Sempf, Chuck Sphar,
and Stephen Randy Davis
ALL-IN-ONE
568141865.046.png 568141865.047.png 568141865.049.png 568141865.050.png 568141865.051.png 568141865.052.png 568141865.053.png 568141865.054.png 568141865.055.png 568141865.056.png 568141865.057.png 568141865.058.png 568141865.060.png 568141865.061.png
 
C# 2010 All-in-One For Dummies ®
Published by
Wiley Publishing, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit-
ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written
permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the
Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing,
Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at
http://www.wiley.com/go/permissions .
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the
Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade
dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its af liates in the United
States and other countries, and may not be used without written permission. All other trademarks are the
property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor
mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY : THE PUBLISHER AND THE AUTHOR MAKE NO
REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF
THE CONTENTS OF THIS WORK AND SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITH-
OUT LIMITATION WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE. NO WARRANTY MAY BE
CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE ADVICE AND STRATEGIES
CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD WITH THE
UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR
OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF
A COMPETENT PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE
AUTHOR SHALL BE LIABLE FOR DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZA-
TION OR WEBSITE IS REFERRED TO IN THIS WORK AS A CITATION AND/OR A POTENTIAL SOURCE
OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR THE PUBLISHER ENDORSES
THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMENDATIONS IT
MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS
WORK MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND
WHEN IT IS READ.
For general information on our other products and services, please contact our Customer Care
Department within the U.S. at 877-762-2974, outside the U.S. at 317-572-3993, or fax 317-572-4002.
For technical support, please visit www.wiley.com/techsupport .
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic books.
Library of Congress Control Number: TK
ISBN: 978-0-470-56348-9
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
568141865.062.png 568141865.063.png 568141865.064.png 568141865.065.png 568141865.066.png 568141865.067.png 568141865.068.png 568141865.070.png 568141865.071.png 568141865.072.png 568141865.073.png 568141865.074.png 568141865.075.png
 
About the Authors
Hi, my name is Bill Sempf , and I am a software architect. Although I used to
hate the term architect, it’s clearly the only thing out there that de nes what
I do. My breadth of experience includes business and technical analysis,
software design, development, testing, server management and maintenance,
and security. In my 17 years of professional experience, I have participated
in the creation of well over 200 applications for large and small companies,
managed the software infrastructure of two Internet service providers,
coded complex software happily in every environment imaginable, and made
mainframes talk to cellphones. In short, I make the technology products that
people are using every day play nicely together.
I started playing with computers in 1979 and haven’t looked back since. In
1985 I was helping my father (also named Bill) manage Apple IIe systems at
the local library. Since then I have built applications for the likes of Bank
One, Lucent Technologies, Nationwide Insurance, and Sears, Roebuck and
Co. I am the author of Visual Basic 2008 For Dummies and Visual Basic 2005
For Dummies ; a coauthor of Effective Visual Studio.NET , Professional ASP.
NET Web Services, and Professional VB.NET ; a frequent contributor to MSDN,
Builder.com, Hardcore Web Services, Cloud Computing Journal, Inside Web
Development Journal, and Intranet Journal; and have recently been an invited
speaker for the ACM and IEEE, DevEssentials, the International XML Web
Services Expo, and the Association of Information Technology Professionals.
I am a graduate of The Ohio State University with a bachelor’s of science
degree in business administration, a Microsoft Certi ed Professional, a
Certi ed Internet Business Strategist, and a Certi ed Internet Webmaster. My
company is Products Of Innovative New Technology (usually called POINT),
and you can reach me at bill@pointWeb.net .
Chuck Sphar escaped the Microsoft C++ documentation camps after six
years of hard labor as a senior technical writer. You can reach Chuck for
praise and minor nits at csharp@chucksphar.com . His C# material Web
page (references throughout the book) is csharp102.info .
Stephen R. Davis, who goes by the name Randy, lives with his wife and son
near Dallas, Texas.
568141865.076.png 568141865.077.png 568141865.078.png 568141865.080.png 568141865.081.png 568141865.082.png 568141865.083.png 568141865.084.png 568141865.085.png 568141865.086.png 568141865.087.png
 
Zgłoś jeśli naruszono regulamin