Thursday, November 13, 2008

Boxing, Catch Clauses n Overiding Structs 70-536 Microsoft .NET Certification #8

Boxing, Catch Clauses & Overiding Structs
70-536
Microsoft .NET Certification
Post #8


Hey Now Everybody,

Please feel free to check out my
MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Here are a few important concepts from the 1st section.

• Correct order for Catch clauses - order from most specific to most general
• Overriding Structures – Reasons to override a method within a structure
i. To avoid boxing
ii. To Return something other than the type names
• Boxing – should be avoided since it adds overhead.


As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Wednesday, November 12, 2008

Stack, Link Lists, Finally Block and HashTable 70-536 Microsoft .NET Certification #7

Stack, Link Lists, Finally Block & HashTable 70-536
Microsoft .NET Certification
Post #7


Hey Now Everybody,

Please feel free to check out my
MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Here are a few important concepts from the 1st section.

• Finally Block - Use Finally Blocks for code that should run whether or not an exception occurs
• Linked Lists – can add item in the following places
i. Before or After any specific node
ii. At the Beginning or End of the LinkedList
• Stack – retrieves items as Pop method in the LIFO Last In First Out
• Adding Key to Hashtable – what methods can be called on the key to determine if it’s unique
i. GetHashCode - hash value from the object is used to see whether the hash has been used in the collection
ii. Equals - If two hash values are identical Equals can be called to determine whether two objects are in fact equal before assigning the value to a key


As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Sunday, November 9, 2008

Procedures, StringDictionary & ArrayList MCTS 70-536 Microsoft .NET Certification #6


Procedures, StringDictionary & ArrayList MethodMCTS 70-536
Microsoft .NET Certification
Post #6


Hey Now Everybody,

Please feel free to check out my
MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Here are a few important concepts from the 1st section.


• StringDictionary – Only strings can be stored as a Value in StringDictionary
• Procedures work with a copy of variables when you pass a value type. Therefore, any modifications that were made to the copy would not affect the original value.
• ArrayList Method – the following determine whether an tiem exists in the collection
i. Contains can be used to test to whether the item exists in the collection
ii. IndexOf will return if the item does not exist in the collection
• Strict conversions enabled - you can convert from int16 to int32 because that is considered a widening conversion, because Int32 can store any value of Int 16, implicit conversion is allowed.


As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Saturday, November 8, 2008

IEQualityComparer , Dequeue Method MCTS 70-536 Microsoft .NET Certification Post # 5

IEQualityComparer, Dequeue Method
MCTS 70-536
Microsoft .NET Certification
Post #5


Hey Now Everybody,

Please feel free to check out my
MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Here are a few important concepts from the 1st section.


• You pass an object that supports the interface to override the way that uniqueness is compared.
i. Ex. You can pass an instance of a class that supports the IEQualityComparer interface when you construct a Hashtable to change the way keys are evaluated for uniqueness.
• Value Structures – are typically the most efficient
• InvalidCastException – is the recommended exception to throw when there is no valid conversion between two types, when implementing the IConvertible interface. .
• Dequeue method - Of the Queue class does
i. Retrieve the item from the front of the collection
ii. As it retrieves an item, it also removes it from the collection


As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Interfaces, Inheritance, Constraints & Attributes MCTS 70-536 Microsoft .NET Certification Post #3

Interfaces, Inheritance, Constraints & Attributes MCTS 70-536
Microsoft .NET Certification
Post #3


Hey Now Everybody,

Please feel free to check out my MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. There are many types in .NET and here are important terms with definitions.

• Interfaces define a contract between types, ensuring that a class implements specific members
• Inheritance derives a type from a base type, automatically implementing all members of the base class, while allowing the derived class to extend or override the existing functionality
• Constraints – if you use constraints to require types to implement a specific interface you can call any methods used in the interface.
• Attributes describe a type, method, or property in a way that can be programmatically queried using a technique called Reflection. Some common uses for attributes are specifying which security privileges a class requires, declaring capabilities, & describing an assembly.

As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Wednesday, November 5, 2008

Data Types - MCTS 70-536 Microsoft .NET Certification #2

Data Types - MCTS 70-536
Microsoft .NET Certification
Post #2


Hey Now Everybody,

Please feel free to check out my MCTS 70-536 reference page on Chris Catto.com. It’s a page with a summary of all of my posts.
This post is on section 1. Developing Application that use system types & collections. Data Types are very important. There are many types in .NET and here are some along with some details & examples.

• Delegates – Define the signature (arguments & return type) for the entry point
i. To Enable an assembly to respond to an event that occurs within a class
• Generic Types – include Nullable & EventHandler
• Reference Types – Include: Strings, Exceptions, delegate, interface.
• Value Types – include Integer, System.Drawing.Point, & Decimal, bool, char, double & long.
• Enumerator - is a type-safe to return a KeyValuePair
• Types Decimal, Double & float can each store fractional numbers
• Types int & Long can store integers
• Types uint & ulong are unsigned , & can only store zero & positive integers
• ushort type can only store values between 0 & 65,535

Question: The following types could store 1.29?

Answer: Float, double & decimal


Question: The following types could store -6?

Answer: int, double, decimal, float & long


As always all comments welcome.

That’s all there is there is no more, Bye for now!

Catto

Tuesday, November 4, 2008

MCTS 70-536 Microsoft Certification .NET 2.0

MCTS 70-536 Microsoft Certification .NET 2.0
Hey Now Everybody,

I’m going to start posting on some content I’ve been studying for a Microsoft Certification Technical Specialist Exam (MCTS) 70-536. I’ve created a page on my domain ChrisCatto.com where I’m going to have a summary & a bunch of links to all my posts.
I feel that this will be some great content & it will also help me to study by working more with the material. I’ve been sources I’ve been studying is from the self paced training book. I’ve been reading the book & there is also a cd that you get with the book. The cd includes ~400 practice questions that have been really good for me to learn from. They are broken down into 7 categories. I’ve created a word document that is over 70 pages from these questions. I plan to make many small posts so any one can read one post & learn a small topic or use it as a reference.
As always all comments welcome.
Bye for now!
Catto