Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

visual studio 2010 and .net 4 six in one
PREMIUM
Số trang
1274
Kích thước
37.9 MB
Định dạng
PDF
Lượt xem
1863

visual studio 2010 and .net 4 six in one

Nội dung xem thử

Mô tả chi tiết

www.it-ebooks.info

www.it-ebooks.info

VISUAL STUDIO® 2010 AND .NET 4

SIX-IN-ONE

INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xxxiii

PART I VISUAL STUDIO

CHAPTER 1 History of Visual Studio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3

CHAPTER 2 Visual Studio UI Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

CHAPTER 3 Visual Studio Code Snippets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31

CHAPTER 4 Visual Studio Templates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65

CHAPTER 5 Getting the Most Out of the IDE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

CHAPTER 6 Visual Studio Extensibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201

PART II .NET 4

CHAPTER 7 .NET Framework Version History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 279

CHAPTER 8 Modern UI Frameworks (WPF and Silverlight) . . . . . . . . . . . . . . . . . . . . 297

CHAPTER 9 Windows Communication Foundation (WCF) . . . . . . . . . . . . . . . . . . . . . 375

CHAPTER 10 Enhancements to the .NET Core Framework . . . . . . . . . . . . . . . . . . . . . 399

CHAPTER 11 Enhancements to the .NET Workfl ow Framework . . . . . . . . . . . . . . . . . 489

CHAPTER 12 Enhancements to the .NET Data Framework . . . . . . . . . . . . . . . . . . . . . 563

CHAPTER 13 Enhancements to the .NET Communication Framework . . . . . . . . . . . 581

CHAPTER 14 .NET Charting Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 593

PART III ASP.NET 4.0

CHAPTER 15 ASP.NET Version History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 653

CHAPTER 16 ASP.NET Charting Controls . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .669

CHAPTER 17 ASP.NET Dynamic Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 711

CHAPTER 18 ASP.NET Model View Controller (MVC) . . . . . . . . . . . . . . . . . . . . . . . . . . .751

CHAPTER 19 ASP.NET Ajax Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 837

CHAPTER 20 ASP.NET Ajax Control Toolkit and jQuery . . . . . . . . . . . . . . . . . . . . . . . . 893

ffirs.indd i 9/6/10 7:21:25 PM

www.it-ebooks.info

PART IV VB.NET

CHAPTER 21 History of Visual Basic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 981

CHAPTER 22 Visual Basic 10.0 Language Improvements . . . . . . . . . . . . . . . . . . . . . . 1007

PART V C#

CHAPTER 23 History of C# . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1041

CHAPTER 24 C# 4.0 Language Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1065

PART VI F#

CHAPTER 25 Visual F# and the Other .NET Languages . . . . . . . . . . . . . . . . . . . . . . . .1103

INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1173

ffirs.indd ii 9/6/10 7:21:26 PM

www.it-ebooks.info

Visual Studio® 2010 and .NET 4

SIX-IN-ONE

ffirs.indd iii 9/6/10 7:21:26 PM

www.it-ebooks.info

ffirs.indd iv 9/6/10 7:21:26 PM

www.it-ebooks.info

Visual Studio® 2010 and .NET 4

SIX-IN-ONE

István Novák

András Velvárt

Adam Granicz

György Balássy

Attila Hajdrik

Mitchel Sellers

Gastón C. Hillar

Ágnes Molnár

Joydip Kanjilal

ffirs.indd v 9/6/10 7:21:26 PM

www.it-ebooks.info

Visual Studio® 2010 and .NET 4 Six-in-One

Published by

Wiley Publishing, Inc.

10475 Crosspoint Boulevard

Indianapolis, IN 46256

www.wiley.com

Copyright © 2010 by Wiley Publishing, Inc., Indianapolis, Indiana

Published simultaneously in Canada

ISBN: 978-0-470-49948-1

ISBN: 978-1-118-00113-4 (ebk)

ISBN: 978-1-118-00295-7 (ebk)

ISBN: 978-1-118-00298-8 (ebk)

Manufactured in the United States of America

10 9 8 7 6 5 4 3 2 1

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 permitted 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

Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ 07030, (201) 748-6011,

fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.

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 specifi cally disclaim all warranties, including

without limitation warranties of fi tness 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 organization or Web site 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 Web site may provide or recommendations it may make. Further,

readers should be aware that Internet Web sites 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

United States at (877) 762-2974, outside the United States at (317) 572-3993 or fax (317) 572-4002.

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: 2010924589

Trademarks: Wiley, the Wiley logo, Wrox, the Wrox logo, Programmer to Programmer, and related trade dress are trade￾marks or registered trademarks of John Wiley & Sons, Inc. and/or its affi liates, in the United States and other countries,

and may not be used without written permission. Visual Studio is a registered trademark of Microsoft Corporation in the

United States and/or other countries. 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.

ffirs.indd vi 9/6/10 7:21:27 PM

www.it-ebooks.info

To Henriett, Eszter and Reka, who supported me in

writing this book with their love and appreciation.

— Istv á n Nov á k

To Á gi, always.

— Gy ö rgy Bal á ssy

First and foremost, I would like to thank my

daughter, Patr í cia Csenge, for always making me

smile and for understanding while I was writing this

book instead of playing with her on weekends. She

is my everything, and I dedicate this book to her.

I also thank my wife, Eszter, for standing beside me

throughout my career and while

I was writing this book.

— Attila Hajdrik

To my son, Kevin, and my nephew, Nicolas.

— Gast ó n C. Hillar

ffirs.indd vii 9/6/10 7:21:27 PM

www.it-ebooks.info

ffirs.indd viii 9/6/10 7:21:27 PM

www.it-ebooks.info

ABOUT THE AUTHORS

ISTV Á N NOV Á K is an associate of Grepton, a Hungarian IT services company.

He works as a software architect and community evangelist. In the last 20 years, he

participated in more than 50 enterprise software development projects. In 2002,

he co - authored the fi rst Hungarian book about .NET development. In 2007, he was

awarded with the Microsoft Most Valuable Professional (MVP) title. He holds a

master ’ s degree from the Technical University of Budapest, Hungary, and also has

a doctoral degree in software technology. He lives in Dunakeszi, Hungary, with his wife and two

daughters. He is a passionate scuba diver. You may have a good chance of meeting him underwater

at the Red Sea in any season of the year.

ANDR Á S VELV Á RT is a Silverlight MVP, with a passion for user experience. As an

accomplished speaker, he gives talks at numerous conferences where Windows

Presentation Foundation (WPF) or Silverlight is the topic. Chapter 8 of this book

feeds from his experience at teaching many Silverlight and WPF classes and work￾shops. He is also the owner of Response Ltd. ( www.response.hu), a small consulting

and WPF/Silverlight development company in Hungary.

ADAM GRANICZ is the CEO of IntelliFactory, a leading provider of F# training, development, and

consulting services, as well as technologies that enable rapid functional, reactive web development.

As one of the fi rst F# users, he is a key community member and an active F# evangelist. He has been

the co - author of two F# books with Don Syme, the designer of the language. He is a regular speaker

at developer conferences and various industry partner events.

GY Ö RGY BAL Á SSY teaches web portal development as a lecturer at Budapest

University of Technology and Economics. He is a founding member of the local

MSDN Competence Centre (MSDNCC), having an important role in evangelizing the

.NET platform as a speaker, book author, and consultant. He provided leadership in

the foundation of the Hungarian .NET community as a key evangelist on Microsoft

events, technical forums, and as the head of the Portal Technology Group in the

MSDNCC. He is a regular speaker on academic and industrial events, presenting in - depth technical

sessions on .NET, ASP.NET, Offi ce development, and ethical hacking, for which he won the Best

Speaker and the Most Valuable Professional (MVP) Awards in SharePoint and ASP.NET multiple

times. He was selected to be the member of the ASPInsiders group. Since 2005, he has been the

Microsoft Regional Director in Hungary.

ATTILA HAJDRIK has worked in the IT industry for more than 14 years. He is the founder and lead

architect of Eyedea Ltd., a small independent software vendor (ISV) specializing in Rich Internet

Application (RIA) development. Before founding his own company, he worked for 6 years at

Microsoft as an Application Development Consultant, and later as a Senior Consultant in Microsoft

Services. He specialized in .NET - based custom development projects. In 2004, He was awarded an

ffirs.indd ix 9/6/10 7:21:28 PM

www.it-ebooks.info

ASP.NET Most Valuable Professional (MVP) title. He has experience with all .NET - related tech￾nologies from the back end to the front end. He is addicted to Doman Specifi c Languages, model -

based development, and a big believer in design patterns. His favorite technologies are Silverlight,

Windows Presentation Foundation (WPF), and ASP.NET Model View Controller (MVC).

MITCHEL SELLERS specializes in software development using Microsoft technologies.

He is the CEO of IowaComputerGurus Inc., a Microsoft C# MVP, a Microsoft

Certifi ed Professional, and experienced technical writer. He enjoys spending time

sharing information with the development community through books, blog postings,

and public speaking events. He is also an active participant in the DotNetNuke

development community. For more information on him, visit his website at

http://www.mitchelsellers.com .

GAST Ó N C. HILLAR has been working with computers since he was 8 years old.

He began programming with the legendary Texas Instruments TI - 99/4A and

Commodore 64 home computers in the early 1980s. He has worked as developer,

architect, and project manager for many companies in Buenos Aires, Argentina.

He is now an independent IT consultant working for several American, German,

Spanish, and Latin American companies, and a freelance author. He has written four

books in English, contributed chapters to two other books, and has written more than 40 books in

Spanish. He contributes to Dr. Dobb ’ s Go Parallel programming portal ( http://www.ddj

.com/go - parallel/), Dr. Dobb ’ s ( http://drdobbs.com), and is a guest blogger at Intel Software

Network ( http://software.intel.com). He lives with his wife, Vanesa, and his son, Kevin.

When not tinkering with computers, he enjoys developing and playing with wireless virtual

reality devices and electronic toys with his father, his son, and his nephew, Nico. You can reach

him at [email protected]. You can follow him on Twitter at http://twitter.com/

gastonhillar. His blog is at http://csharpmulticore.blogspot.com .

ÁGNES MOLNÁR has been working with Microsoft technologies and SharePoint since 2001. After

a few years of working as a developer and SharePoint expert, she founded a SharePoint consulting

company in Hungary, Central Europe. She ’ s been working as a senior consultant, and has led

SharePoint implementations at numerous Central European companies. Her main focus is on

architecture, governance, information and knowledge management, and enterprise search. She ’ s a

frequent speaker at conferences around the globe, and is also the co - author of various SharePoint

books.

JOYDIP KANJILAL was awarded a Microsoft Most Valuable Professional (MVP) title in

ASP.NET in 2007, 2008, and 2009. He has more than 12 years of industry experience in IT, with

more than 6 years experience in Microsoft .NET and its related technologies. He was selected as

MSDN Featured Developer of the Fortnight (MSDN), and was also selected as Community Credit

Winner at www.community - credit.com several times. He has authored numerous books on

ASP - related topics.

ABOUT THE AUTHORS

x

ffirs.indd x 9/6/10 7:21:28 PM

www.it-ebooks.info

ABOUT THE TECHNICAL EDITOR

DOUG PARSONS is a software architect and the director of Ohio Operations for NJI New Media.

His expertise is in web development with a specialization in political websites. Most notably, he has

worked on the 2008 John McCain presidential campaign website and, more recently, Mitt Romney ’ s

offi cial book tour website. In his downtime, he enjoys spending time with his lovely fi anc é e, Marisa,

and their four puppies.

ffirs.indd xi 9/6/10 7:21:29 PM

www.it-ebooks.info

ffirs.indd xii 9/6/10 7:21:29 PM

www.it-ebooks.info

ACQUISITIONS EDITOR

Paul Reese

PROJECT EDITOR

Kevin Shafer

TECHNICAL EDITOR

Doug Parsons

PRODUCTION EDITOR

Rebecca Anderson

COPY EDITOR

Christopher Jones

EDITORIAL DIRECTOR

Robyn B. Siesky

EDITORIAL MANAGER

Mary Beth Wakefi eld

FREELANCER EDITORIAL MANAGER

Rosemarie Graham

ASSOCIATE DIRECTOR OF MARKETING

David Mayhew

PRODUCTION MANAGER

Tim Tate

VICE PRESIDENT AND EXECUTIVE GROUP

PUBLISHER

Richard Swadley

VICE PRESIDENT AND EXECUTIVE PUBLISHER

Barry Pruett

ASSOCIATE PUBLISHER

Jim Minatel

PROJECT COORDINATOR, COVER

Lynsey Stanford

PROOFREADERS

Josh Chase, Word One New York

James Saturnio, Word One New York

INDEXER

J & J Indexing

COVER DESIGNER

Michael E. Trent

COVER IMAGE

© Andreas Bauer/istockphoto.com

CREDITS

ffirs.indd xiii 9/6/10 7:21:29 PM

www.it-ebooks.info

Tải ngay đi em, còn do dự, trời tối mất!