Home Page Icon
Home Page
Table of Contents for
Title Page
Close
Title Page
by Alessandro Del Sole
Visual Basic® 2012 Unleashed, Second Edition
Title Page
Copyright Page
Contents at a Glance
Table of Contents
Foreword
About the Author
Dedication
Acknowledgments
We Want to Hear from You!
Reader Services
Part I: Learning the Basics of VB
Chapter 1. Introducing the .NET Framework 4.5
What Is the .NET Framework?
The Common Language Runtime
The Base Class Library
Programming Languages Included in .NET 4.5
Additional Tools Shipping with the .NET Framework
What’s New in .NET Framework 4.5
How .NET Meets Windows 8 and the Windows Runtime
Summary
Chapter 2. Getting Started with the Visual Studio 2012 IDE
What’s New in Visual Studio 2012
Status Bar and Start Page
Working with Projects and Solutions
Working with Tool Windows
My Project
Compiling Projects
Debugging Overview
Browsing the Visual Basic and .NET Documentation
Quick Launch Tool
Showing the Hierarchy of Method Calls
Summary
Chapter 3. The Anatomy of a Visual Basic Project
Brief Overview of Types and Members
Visual Basic 2012 Reserved Keywords
Understanding Project Files
Understanding References
Summary
Chapter 4. Data Types and Expressions
Introducing the Common Type System
Understanding Value Types
Understanding Reference Types
Differences Between Value Types and Reference Types
Converting Between Value Types and Reference Types
Understanding Conversion Operators
Working with .NET Fundamental Types
Common Operators
Iterations, Loops, and Conditional Code Blocks
Summary
Chapter 5. Debugging Visual Basic 2012 Applications
Preparing an Example
Debugging Instrumentation
Inspecting Object Details with Debugger Visualizers
Debugging in Code
Summary
Chapter 6. Handling Errors and Exceptions
Introducing Exceptions
Handling Exceptions
Summary
Part II: Object-Oriented Programming with Visual Basic 2012
Chapter 7. Class Fundamentals
Declaring Classes
Fields
Properties
Types and Members Visibility: Scope
Executing Actions with Methods
Partial Classes
Partial Methods
Constructors
Shared Members
Common Language Specification
Summary
Chapter 8. Managing an Object’s Lifetime
Understanding Memory Allocation
Understanding Garbage Collection
Understanding the Finalize Method
Understanding Dispose and the IDisposable Interface
Restoring Objects with Object Resurrection
Advanced Garbage Collection
Summary
Chapter 9. Organizing Types Within Namespaces
Understanding Namespaces
Organizing Types Within Namespaces
Global Namespaces and the Global Keyword
Summary
Chapter 10. Modules
Modules Overview
Differences Between Modules and Classes
Summary
Chapter 11. Structures and Enumerations
Understanding Structures
Assigning Structures to Variables
Passing Structures to Methods
Members’ Visibility
Inheritance Limitations and Interface Implementation
Memory Allocation
Organizing Structures
Overloading Operators
Structures and Common Language Specification
Enumerations
Summary
Chapter 12. Inheritance
Applying Inheritance
Illustrating System.Object in Detail
Introducing Polymorphism
Overriding Members
Conditioning Inheritance
Accessing Base Classes Members
Constructors’ Inheritance
Shadowing
Overriding Shared Members
Practical Inheritance: Building Custom Exceptions
Summary
Chapter 13. Interfaces
Defining Interfaces
Implementing and Accessing Interfaces
Interfaces and Polymorphism
Interfaces Inheritance
Defining CLS-Compliant Interfaces
Most Common .NET Interfaces
Summary
Chapter 14. Generics and Nullable Types
Introducing Generics
Creating and Consuming Generics
Introducing Nullable Types
Summary
Chapter 15. Delegates and Events
Understanding Delegates
Handling Events
Offering Events to the External World
Summary
Chapter 16. Working with Collections and Iterators
Understanding Collections Architecture
Working with Nongeneric Collections
Working with Generic Collections
Building Custom Collections
Concurrent Collections
Iterators in Visual Basic
Summary
Chapter 17. Creating Objects: Visual Tools and Portable Libraries
Visual Studio Class Designer
Class View Window
Generate from Usage
Creating Portable Classes
Summary
Part III: Advanced Language Features
Chapter 18. Manipulating Files and Streams
Manipulating Directories and Pathnames
Handling Exceptions for Directories and Pathnames
Manipulating Files
Introducing Streams
Summary
Chapter 19. The My Namespace
Introducing the My Namespace
My.Application
My.Computer
My.Settings
My.Resources
My.User
My.WebServices
Extending My
My in Different Applications
Summary
Chapter 20. Advanced Language Features
Local Type Inference
Array Literals
Extension Methods
Anonymous Types
Relaxed Delegates
Lambda Expressions
Ternary If Operator
Generic Variance
Summary
Part IV: Data Access with ADO.NET and LINQ
Chapter 21. Introducing ADO.NET and DataSets
System Requirements
Introducing ADO.NET
Introducing DataSets
Summary
Chapter 22. Introducing LINQ
What Is LINQ?
LINQ Examples
Language Support
Understanding Providers
Overview of LINQ Architecture
Summary
Chapter 23. LINQ to Objects
Introducing LINQ to Objects
Querying in Memory Objects
Introducing Standard Query Operators
Summary
Chapter 24. LINQ to SQL
Introducing LINQ to SQL
Querying Data with LINQ to SQL
Insert/Update/Delete Operations with LINQ
Advanced LINQ to SQL
LINQ to SQL with SQL Server Compact Edition 3.5
Summary
Chapter 25. LINQ to DataSets
Querying Datasets with LINQ
LINQ to DataSets’ Extension Methods
Summary
Chapter 26. Introducing ADO.NET Entity Framework
Introducing Entity Framework
Understanding Entity Data Models
Insert/Update/Delete Operations for Entities
Querying EDMs with LINQ to Entities
Querying EDMs with Entity SQL
Mapping Stored Procedures
Introducing the Code First Approach
Compatibility with the Past and with Other Technologies
Summary
Chapter 27. Manipulating XML Documents with LINQ and XML Literals
Introducing LINQ to XML
Writing XML Markup in VB with XML Literals
XML Schema Inference
Summary
Part V: Building Windows Desktop Applications
Chapter 28. Creating WPF Applications
What Is WPF?
Introducing the WPF Architecture
Building WPF Applications with Visual Studio 2012
Understanding the eXtensible Application Markup Language
Understanding Visual Tree and Logical Tree
Handling Events in WPF
Arranging Controls with Panels
Managing Windows
Introducing the Application Object
Brief Overview of WPF Browser Applications
Summary
Chapter 29. WPF Common Controls
Introducing WPF Controls Features
Understanding the ContentControl
Understanding Common Controls
Frame
Using Common Dialogs
Summary
Chapter 30. Brushes, Styles, Templates, and Animations in WPF
Introducing Brushes
Introducing Styles
Introducing Control Templates
Introducing Transformations
Introducing Animations
Summary
Chapter 31. Manipulating Media and Documents
Viewing Images
Playing Media
Manipulating Documents
Viewing XPS Documents
Summary
Chapter 32. Introducing Data-Binding
Introducing the Data-Binding in WPF
Discussing the Drag’n’Drop Data-Binding
Summary
Chapter 33. Localizing Applications
Introducing .NET Localization
Windows Forms Localization
WPF Localization
Summary
Part VI: Building Web Applications
Chapter 34. Building ASP.NET Web Applications
Introducing the ASP.NET Model
Web Forms and Master Pages
ASP.NET Controls
Handling Events
Understanding State Management
Creating a Web Application with VB 2012 with Navigation and Data-Binding
Configuring a Web Application for Security
Summary
Chapter 35. Publishing ASP.NET Web Applications
Deployment Overview
Classic Publishing
MSDeploy Publish
Summary
Chapter 36. Building Rich Internet Applications with Silverlight 5
Introducing Silverlight
Creating Silverlight Projects with Visual Basic 2012
Adding Controls and Handling Events
Playing Media
Animating UI Elements
Introducing Navigation Applications
Introducing WCF RIA Services
“Out-of-Browser” Applications
XAML Debugging
Additional New Features in Silverlight 5
Summary
Chapter 37. Building and Deploying Applications for Windows Azure
Overview of the Windows Azure Platform
Registering for the Windows Azure Developer Portal
Downloading and Installing Tools for Visual Studio
Creating a Demo Project
Deploying Applications to Windows Azure
Summary
Chapter 38. Building Apps for Windows Phone 7.5
Introducing Windows Phone
Developer Registration to the Windows Phone Marketplace
Downloading the Developer Tools
The Windows Phone 7.5 Programming Model
Creating Apps with Visual Basic
Setting Properties, Icons, and Splash Screen
Submitting Apps to the Marketplace
Summary
Part VII: Networking and Exposing Data Through Networks
Chapter 39. Creating and Consuming WCF Services
Introducing Windows Communication Foundation
Implementing WCF Services
Consuming WCF Services
Handling Exceptions in WCF
Hosting WCF Services in Internet Information Services
Configuring Services with the Configuration Editor
Summary
Chapter 40. Implementing and Consuming WCF Data Services
What Are Data Services?
Implementing WCF Data Services
Consuming WCF Data Services
Implementing Service Operations
Implementing Query Interceptors
Understanding Server-Driven Paging
Summary
Part VIII: Advanced .NET Framework with VB 2012
Chapter 41. Serialization
Objects Serialization
XML Serialization
Custom Serialization
Serialization with XAML
Serialization in Windows Communication Foundation
Serialization in the ADO.NET Entity Framework
Summary
Chapter 42. Processes and Multithreading
Managing Processes
Introducing Multithreading
Understanding the .NET Thread Pool
Threads Synchronization
Summary
Chapter 43. Parallel Programming and Parallel LINQ
Introducing Parallel Computing
Understanding and Using Tasks
Parallel Loops
Debugging Tools for Parallel Tasks
Concurrent Collections
Introducing Parallel LINQ
Summary
Chapter 44. Asynchronous Programming
Overview of Asynchrony
Before .NET 4.5: Event-based Asynchrony
Before .NET 4.5: The Asynchronous Programming Model
.NET 4.5: Introducing the Async Pattern
Getting Started with Async/Await
Exception Handling in Async
Implementing Task-based Asynchrony
Cancellation and Progress
Asynchronous Lambda Expressions
Asynchronous I/O File Operations in .NET 4.5
Summary
Chapter 45. Working with Assemblies
Assembly Overview
Understanding Application Domains
Security Model in .NET 4.5
Summary
Chapter 46. Reflection
Introducing Reflection
Understanding Assemblies’ Metadata
Getting Assembly Information
Reflecting Types
Invoking Code Dynamically
Generating Code at Runtime with Reflection.Emit
Caller Information
Summary
Chapter 47. Coding Attributes
Applying Attributes
Coding Custom Attributes
Reflecting Attributes
Summary
Chapter 48. Platform Invokes and Interoperability with the COM Architecture
Importing and Using COM Objects
Exposing .NET Objects to the COM World
P/Invokes and Unmanaged Code
References to the Win32 API Calls
Summary
Chapter 49. Documenting the Source Code with XML Comments
Understanding XML Comments
Implementing XML Comments
Generating Compiled Help Files
Summary
Part IX: Applications Deployment
Chapter 50. Understanding the Global Assembly Cache
The Dll Hell Problem
The Global Assembly Cache
Summary
Chapter 51. Setup and Deployment Projects with InstallShield for Visual Studio
Windows Installer Overview
Introducing InstallShield
Creating a Setup Project
Configuring the Setup Project
Building and Deploying the Windows Installer Package
Summary
Chapter 52. Deploying Applications with ClickOnce
Introducing ClickOnce
Deploying Applications with ClickOnce
Configuring ClickOnce
Security Considerations
Programmatically Accessing ClickOnce
Registration-Free COM
Summary
Part X: Mastering the Visual Studio 2012 IDE
Chapter 53. Advanced IDE Features
Exporting Templates
Customizing Visual Studio 2012
Managing User Settings
Customizing the Toolbox
Using, Creating, and Managing Reusable Code Snippets
Managing Libraries with NuGet
Summary
Chapter 54. Introducing Visual Studio Extensibility
Introducing Visual Studio Extensibility
Building a Visual Studio Package
Deploying Visual Studio Extensions
Managing Extensions with Extensions and Updates
Managing Add-Ins with the Add-In Manager
Extending the Code Editor
Summary
Chapter 55. Advanced Analysis Tools
Introducing Analysis Tools
Performing Code Analysis
Calculating Code Metrics
Code Clone Detection
Profiling Applications
Historical Debugging with IntelliTrace
Generating Dependency Graphs
Summary
Chapter 56. Testing Code with Unit Tests, Test-Driven Development, and Code Contracts
Testing Code with Unit Tests
Introducing Test Driven Development
Understanding Code Contracts
Summary
Appendix
Appendix A. Useful Resources and Tools for Visual Basic 2012
Visual Basic Resources in MSDN
Useful Developer Tools for Visual Basic
Index
Ad Pages
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover Page
Next
Next Chapter
Copyright Page
Visual Basic
®
2012 Unleashed
Alessandro Del Sole
800 East 96th Street, Indianapolis, Indiana 46240 USA
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset