Showing articles from Exam 70-536 tag
Exam 70-536 - Searching, Modifying, and Encoding Text
Chapter three finished, Searching, Modifying, and Encoding Text.
Exam 70-536 - Framework Fundamentals
The book I'm reading to prepare myself is Microsoft.NET Framework 2.0 Application Development Foundation
Exam 70-536 - Input/Output
Finished another chapter in my book, Input/Output, which deals with the following:
ArrayList Class
Resizeable, unordered, index-based collection. Suffers from boxing/unboxing when working with value types. Implements IEnumerator, allowing foreach…
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
Used to manipulate the bits of a 32 integer. Used to pack multiple small numbers into one when storage is an issue.
Boxing And Unboxing
Boxing is an implicit conversion of a value-type to the object type. Boxing a value-type will copy the value on the heap, and place a pointer to the boxed…
BufferedStream Class
Provides an buffer for another Stream. Used when the underlying stream is not very efficient in handling constant calls.
CollectionsUtil
Helper method to create a case-insensitive Hashtable or SortedList
Comparer Class
Used as the default comparer when sorting with ArrayList for example. Implements the IComparer interface.
DeflateStream Class
Used to compress and decompress data. Slightly smaller result than GZipStream because of lack of header information. Use for internal use in your own…
Delegate Class
Holds a reference to a method. Declared as a single line, the framework provides the underlying implementation.
Directory Class and DirectoryInfo Class
DirectoryInfo Extends FileSystemInfo with directory specific operations. It is possible to create a DirectoryInfo object for a non-existent directory.…
DriveInfo Class and DriveType Enumeration
DriveInfo Will not work on non-existent drives. AvailableFreeSpace returns the freeBytesForUser. TotalFreeSpace returns the freeBytes.
Encode text by using Encoding classes
Provides information about Encodings. Default .NET Encoding is UTF-16. Notepad has trouble displaying UTF-7 and UTF-32 encoded files, even though the file…
EventArgs Class
Defines the arguments to pass in an event. The EventArgs class is used to raise an event without any data. Derive from EventArgs when you need to pass…
EventHandler Delegates
Provides an easier way to define events, without having to declare a delegate. The EventHandler delegate is used for events without data, while the…
Exception classes
All .NET exceptions derive from the System.SystemException class. All custom exceptions derive from the System.Exception class. For most applications…
File Class and FileInfo Class
FileInfo Extends FileSystemInfo with file specific operations. It is possible to create a FileInfo object for a non-existent file. File Contains static…
FileStream Class
Provides a file specific implementation of a Stream.
FileSystemInfo Class and FileSystemWatcher Class
FileSystemInfo FileSystemInfo forms the base for FileInfo and DirectoryInfo, but not DriveInfo. Information contained by FileSystemInfo is cached on first…
Generic Dictionary class
Generic version of the Hashtable class. Retains the order in which items were added. Contains KeyValuePair internally.
Generic KeyValuePair structure
Internal representation of the generic Dictionary.
Generic List class
Generic version of the ArrayList class. Supports delegates for sorting, see below.
Generic List.Enumerator structure, and Generic SortedList class
Generic version of the Arraylist class. Sorted version of the generic List class. Automatically sorts items based on the key.
Generic Queue class
Exam 70-536 notes.
Generic SortedDictionary class
Generic version of the Hashtable class. Sorted version of the generic Dictionary class. Contains KeyValuePair internally. Automatically sorts items based…
Generic Types
Allows you to use placeholders for parameters, which get defined later by the caller. Allows for strongly typed collections, which enable compile-time…
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
Used to compress and decompress data. Slightly larger result than DeflateStream because of extra header information. Use for files that need to be able to…
HashTable Class
Key-value pair based collection. Contains DictionaryEntry objects. Not accessible by index, only by key. Values are returned based on the hash value when…
ICloneable Interface
Enable objects to be cloned. Does not specify if you need to implement deep-copy or shallow-copy. (Problematic in public APIs)
IComparable Interface
IComparable is required for sorting. CompareTo is used for sorting, Equals is used to compare equality. (IEquatable interface) Returns less than 0, 0 or…
IConvertible Interface
Enables a class to be converted to a base type such as Boolean, Byte, Double, or String. C allows widening conversion without any casting, e.g.: going…
IDisposable Interface
Enable assemblies that create an instance of your class to free up any resources the instance has consumed. Only implement IDisposable when one of your…
IEquatable Interface
Enables instances of a class to be compared for equality. e.g.: if (a = = b)
IFormattable Interface
Enable classes to display themselves with greater control than ToString.
IsolatedStorageFile Class
Represents a sandbox location to store application specific data in. Assembly/Machine store for application-level data. Assembly/User store for user-level…
IsolatedStorageFileStream Class
Represents a sandbox location to store application specific data in. Assembly/Machine store for application-level data. Assembly/User store for user-level…
Match Class and MatchCollection Class
Contains the result of matches in a regex.
MemoryStream Class
Provides an in-memory implementation of a Stream. Is meant for temporary streams. Possibly to minimize the time you need to hold another stream open…
NameValueCollection Class
Acts like a StringDictionary which can contain duplicate keys. Values can be retrieved by key and index.
Path Class
Provides helper methods for working with file system paths as strings.
Queue Class
First-in, First-out logic. Acts as a queue of customers in a bank.
Reference Types
Data stored on the heap, a pointer to that data is stored on the stack. The heap gets cleaned by the garbage collector, removing items which don't have a…
Regex Class
Used to work with regular expressions. A good free tool to read and create regexs is Expresso. There are many good tutorials around.
Snippets
csharp struct MyPoint { private int x; private int y; public int X { get { return this.x; } } public int Y { get { return this.y; } } public MyPoint(int…
SortedList Class
Key-value pair based collection. Contains DictionaryEntry objects. Accessible by index and key. Sorts items when they are added.
Specialized Dictionary
Special case dictionaries ListDictionary Used as a HashTable for fewer than 10 items. Implemented as a simple linked list behind the scenes. Same…
Specialized String classes
StringCollection Acts as a strongly typed ArrayList of strings. Equivalent to List with generics. StringDictionary Acts as a strongly typed Hashtable of…
Stack Class
Last-in, First-out logic. Acts as a stack of papers on a desk.
Starting Exam 70-536 Study
Taking a little break right now, got a bit of a burn out, lack of sleep might have something to do with it :)
Stream Class
A stream is an abstraction of a sequence of bytes, which helps isolating 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 maintains an internal buffer instead of allocating a new string every time. Initial buffer size is 16 bytes, but can be passed via the…
StringReader Class and StringWriter Class
Used to read and write in-memory strings. StringWriter uses a StringBuilder behind the scenes.
TypeForwardTo Attribute
Attribute to indicate a type has moved from one assembly to another. Enables you to update your assemblies without recompiling the clients using them.…
Value Types
Stored on the stack. Contain a value, not a reference. Inherit from System.Value Exists of built-in types, user-defined types and enumerations. Prefer to…