| Course Description | |
| In this volume, you’ll learn about the .NET Framework 2.0 system types like Generic and Reference types. Work with groups of data using various classes like Collection, Hashtable, ArrayList, and Dictionary. Improve type safety and performance using generic collections and manage data better by using specialized collections. You’ll learn about object serialization and working with XML formatted data. Manage files and folders using the System.IO namespace. See how to work with external data using the Stream classes.
Course Length: 2 Days Course Tuition: $790 (US) |
|
| Prerequisites | |
| Some programming background, in addition to experience with Visual Studio 2005 and version 2.0 of the .NET Framework, in either Visual Basic or C#. | |
| Course Outline |
|
• Using System Types .NET Framework Class Library Starting with System.Object Value Types and Reference Types Working with Built-in Value Types Working with Numbers The ToString Method Instance Members vs. Static Members Using the Nullable Type Working with Dates and Times Working with Reference Types The Difference between Value and Reference Types Working with Strings Introducing the StringBuilder Class Using Arrays Handling Exceptions Converting Between Types Implicit Conversions Converting Explicitly with Visual Basic Functions Converting Explicitly with .NET Framework Types Boxing and Unboxing • Building Custom Data Types Creating Custom Types Value Types and Reference Types Working with Constants and Enumerations Building Structures A Simple Structure Working with Constructors and Properties Building Classes Exploring a Simple Class Using a Custom Class Expanding the Class Inheriting from the ApplicationException Class • Advanced Topics in Custom Types Using Attributes Built-In Attributes Using the TypeForwardedToAttribute Class Building Your Own Attributes Implementing Interfaces IComparable IDisposable IConvertible ICloneable IEquatable IFormattable Creating Your Own Interfaces Adding Delegates and Events Working with Delegates Handling Events Creating and Consuming Generic Classes Built-In Generic Classes Creating Your Own Generic Type Using Constraints • Collecting Data The System.Collections Namespace Handling Simple Collections with ArrayList Adding and Removing Items Collection Interfaces ICollection IList CollectionBase Class Working with Sequential Lists The Queue Class The Stack Class Handling Key/Value Pairs with Dictionaries Hashtables for Simple Lists Controlling Duplicates with IEqualityComparer SortedLists for Sorting Sorting Collections Implementing IComparable Sorting a Different Way Handling Collections of Boolean Values • Generic and Specialized Collections Thinking Generic .NET Generic Collection Classes Looking at a Problem Working with the Generic List Class Declaring a Generic List Adding and Removing Items Iterating a Generic List Some Additional .NET 2.0 Methods Working with Predicates Working with Other Generic Classes Using the Generic Dictionary Class Generic SortedDictionary/SortedList Classes Generic Queues and Stacks The Generic LinkedList Class Creating Custom Generic Collection Classes Generic Collection Enumerators Working with Specialized Collections Looking at Specialized Collections Working with StringCollection Working with StringDictionary Storing Name/Value Pairs Using the NameValue Collection Class Using the BitArray Class Introducing the BitVector32 Structure |
• Serializing Objects What is Serialization? Which Serialization Format to Use? Getting Started Using Serialization Using Simple Serialization Steps for Serializing Objects Serializing a String Location of the Files Serialized in the Chapter Steps for Deserializing Objects Serializing Complex Types Deserializing Complex Types Catching Exceptions in Serialization Using Simple Serialization with Custom Classes and Collections Preparing Custom Classes for Serialization Serializing Custom Classes Deserializing Custom Classes Serializing Custom Collections Deserializing Custom Collections Handling Various Serialization Issues Formatting for SOAP Simple Serialization Version Compatibility Issues Making Members Nonserializable Using Deserialization Callbacks Tips for Serialization • XML and Custom Serialization What is XML Serialization? Differences between XML and Binary Serialization How Does XML Serialization Work? Simple XML Serialization Getting Started with XML Serialization Steps for Serializing Objects to XML Steps for Deserializing Objects from XML Serializing Complex Data Types to XML Catching Exceptions Serializing/Deserializing Custom Classes and Collections Serializing Custom Classes to XML Deserializing Custom Classes from XML Serializing Custom Collections to XML Deserializing Custom Collections from XML Working with Datasets and XML Writing Data Sets to XML Loading Data Sets from XML Using XML Schemas XML Schema for PatientInformation Creating a Matching Class Introducing the XML Schema Definition Tool Introducing Custom Serialization Implementing ISerializable Serializing Methods Storing Values to SerializationInfo Deserializing with Custom Serialization Serialization Events • Working with Files and Folders Working with Drives and Folders Working with Drives The FileSystemInfo Class Working with Directories Monitoring the File System Working with Files and Paths Parsing with the Path Class Getting File Information Working with Files Introducing TextReader and TextWriter Reading and Writing Strings Reading from and Writing to Files All about Streams StreamReader and StreamWriter Reading and Writing Binary Data Working with Data in Memory Better Performance with BufferedStream • Compressing/Decompressing Files and Isolated Storage What are Compression/Decompression and Isolated Storage in .NET? Compressing/Decompressing Files in .NET Compression Method Similarities Compression Method Differences GZipStream/DeflateSream Classes Steps for Compressing Files Steps for Decompressing Files Understanding Isolated Storage What is Isolated Storage? How Does Isolated Storage Work? Working with the IsolatedStorageFile Class Getting Started with IS Files and Folders Working with Folders in Isolated Storage Working with Files in Isolated Storage Accessing Isolated Storage from Other .NET Applications Contact us for course schedules or more information. |


