Showing articles from Exam 70-536 tag

Exam 70-536 - Searching, Modifying, and Encoding Text
Chapter three of my 70-536 study: regular expressions, StringBuilder and text encodings.

Exam 70-536 - Framework Fundamentals
Chapter one of my 70-536 study: value and reference types, generics, boxing, the standard interfaces, and events and delegates.

Exam 70-536 - Input/Output
Chapter two of my 70-536 study: files and folders, streams, readers and writers, compression and isolated storage.

ArrayList Class
Resizable, index-based collection that boxes value types and supports foreach through IEnumerable.

BinaryReader Class and BinaryWriter Class
Used to read and write binary data from streams. Call the correct Read methods when using a BinaryReader.

BitArray Class
Contains an array of true/false values. Resizable through the Length property. Supports bitwise operations.

BitVector32 Structure and BitVector32.Section Structure
Manipulates the bits of a 32-bit integer and packs multiple small numbers into one when storage is an issue.

Boxing And Unboxing
Boxing implicitly converts a value type to object by copying it to the heap; unboxing explicitly converts it back.

BufferedStream Class
Provides a buffer for another Stream, for when the underlying stream is not efficient at handling frequent calls.

CollectionsUtil Class
Helper class to create a case-insensitive Hashtable or SortedList.

Comparer Class
Default comparer used when sorting, for example with an ArrayList. Implements the IComparer interface.

DeflateStream Class
Compresses and decompresses data, with slightly smaller output than GZipStream because it omits header information.

Delegate Class
Holds a reference to a method; declared in a single line, with the framework providing the underlying implementation.

Directory Class and DirectoryInfo Class
DirectoryInfo extends FileSystemInfo with directory-specific operations and can represent a directory that does not exist yet.

DriveInfo Class and DriveType Enumeration
DriveInfo gives drive type, format, label and free space; AvailableFreeSpace is the free space for the current user, TotalFreeSpace for the whole drive.

Encode text by using Encoding classes
Encoding classes: listing available encodings and writing the same text as UTF-7, UTF-8, UTF-16 and UTF-32 to compare the files.

EventArgs Class
EventArgs carries event data; use it for events without data and derive from it to pass custom data.

EventHandler Delegates
EventHandler and EventHandler<T> let you define events without declaring your own delegate, plus a pattern for disposing event listeners.

Exam 70-536 Study Notes
My study notes for Microsoft exam 70-536: .NET types, collections, generics, I/O, serialization and more, with C# examples.

Exception classes
Exception class hierarchy, catch ordering, finally, try/catch/finally scopes and the recommended constructors for custom exceptions.

File Class and FileInfo Class
File and FileInfo: file-specific operations, static helpers, NTFS encryption, replacing a file with a backup, and writing or appending text.

FileStream Class
Provides a file-specific implementation of a Stream.

FileSystemInfo Class and FileSystemWatcher Class
FileSystemInfo is the base class of FileInfo and DirectoryInfo; FileSystemWatcher monitors a directory for created, deleted, renamed and changed files.

Generic Dictionary class
Generic version of the Hashtable class, storing its items as KeyValuePair<TKey, TValue>.

Generic KeyValuePair structure
Defines a key/value pair, the element type you get when enumerating a generic Dictionary.

Generic List class
Generic version of the ArrayList class, with support for Comparison<T> delegates when sorting.

Generic Queue class
Generic version of the Queue class.

Generic SortedDictionary class
Sorted version of the generic Dictionary class. It stores KeyValuePair items and sorts them automatically by key.

Generic SortedList Class
Generic version of the SortedList class, a key-value collection that automatically sorts items based on the key.

Generic Types
Generics let the caller fill in type placeholders, giving strongly typed collections with compile-time type checking and optional constraints.

Group Class and GroupCollection Class
Contains the named and unnamed results of matches in a regex. Unnamed results are numbered starting from 1.

GZipStream Class
Compresses and decompresses data in gzip format. Output is slightly larger than DeflateStream because of extra header information.

Hashtable Class
Non-generic key-value collection of DictionaryEntry objects, accessed by key rather than by index and stored by hash code.

ICloneable Interface
Enables objects to be cloned, without specifying deep or shallow copy, which makes it problematic in public APIs.

IComparable Interface
IComparable is required for sorting. CompareTo returns less than 0, 0 or greater than 0 to order the current object relative to another.

IConvertible Interface
Enables a class to be converted to a base type such as Boolean, Byte, Double or String, plus widening, narrowing and operator conversions.

IDisposable Interface
Enables users of your class to free the resources an instance has consumed. Implement it for disposable members or native resources.

IEquatable Interface
Enables instances of a class to be compared for equality through a strongly typed Equals method.

IFormattable Interface
Enables classes to control how they are formatted, with more options than ToString.

IsolatedStorageFile Class
Represents an isolated storage area for application-specific data, with a machine-level and a user-level store per assembly.

IsolatedStorageFileStream Class
Exposes a file inside an isolated store as a FileStream; file paths are relative to the store.

Match Class and MatchCollection Class
Contains the results of matching a regex against a string.

MemoryStream Class
Provides an in-memory Stream for temporary data, for example to avoid keeping a file locked by a FileStream for long.

NameValueCollection Class
Like a StringDictionary, but can store multiple values under the same key; values can be retrieved by key or index.

Path Class
Provides helper methods for working with file system paths as strings.

Queue Class
First-in, first-out collection, like a queue of customers in a bank.

Reference Types
Reference type data lives on the heap and is cleaned up by the garbage collector; copying a reference copies only the pointer.

Regex Class
Used to work with regular expressions: anchoring patterns safely, plus examples of matching, replacing and named groups.

Snippets
C# snippets: operator overloading on an immutable struct, and a Predicate used with Array.TrueForAll.

SortedList Class
Key-value pair based collection. Contains DictionaryEntry objects. Accessible by index and key. Sorts items when they are added.

Specialized Dictionary
Specialized dictionaries ListDictionary, HybridDictionary and OrderedDictionary, and when to use each instead of a Hashtable.

Specialized String classes
StringCollection and StringDictionary, strongly typed string collections equivalent to List<string> and Dictionary<string, string>.

Stack Class
Last-in, first-out (LIFO) collection that works like a stack of papers on a desk.

Starting Exam 70-536 Study
After a burnout, I'm putting my own project on hold to study for Microsoft exam 70-536.

Stream Class
A stream is an abstraction of a sequence of bytes, which helps isolate the programmer from the underlying implementation.

StreamReader Class and StreamWriter Class
Provides extra helper methods intended to read a stream as a string. Calling Close() on a StreamReader will close the underlying Stream as well.

StringBuilder Class
A StringBuilder keeps an internal buffer instead of allocating a new string every time. The default capacity is 16 characters.

StringReader Class and StringWriter Class
Used to read and write in-memory strings. StringWriter uses a StringBuilder behind the scenes.

TypeForwardedTo Attribute
TypeForwardedToAttribute marks a type as moved to another assembly, so client code keeps working without being recompiled.

Value Types
Value types: built-in types, structures, enums and nullable types, how they hold and copy values, and good practices for using them.