Saturday, November 29, 2008

BitArray & Argument Exceptions 70-536 Microsoft .NET Certification Post #14

BitArray & Argument Exceptions 70-536
Microsoft .NET Certification
Post #14


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. As I stufy for this test I thought this would be good to post on to learn the content & others would be able to view & comment on it.


BitArray class – is a resizable collection that can store Boolean values, In addition to being resizable, it upports common bit-level operations such as And, Not, Or, & Exclusive-or(XOR) The BitArry class would be efficient if you are writing an app that needs to perform Boolean math on a set of 42 bits.
BitVector32 – structures purpose is to aid in manipulating bits in a 32bit integer, and it is perfect for IP address. BitVector32 is not a resiable collection at all. Instead it is fixed at 32bits
ArrayList – does not support Boolean math
Boolean is a single bit value.
InvalidOperationException – Throw an InvalidOperationException if a property set or method call is not appropriate given the object’s current state. EX used if calling assembly called the method to read the filebefore specifying the file name.
• You should throw an ArgumentOutOfRangeException when a caller provides a value for a parameter but that value is invalid
ArgumentException is a base class for all argument exceptions. You should use more specific whenever appropriate, specifically ArgumentOutOfRangeException & ArgumentNullException
ArgumentNullException when a calling assembly provides a null value for a parameter that must have a value.
• Both SortedList & an implementation of IDictionary can be accessed by using a key

As always all comments welcome.


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

Catto

Sunday, November 23, 2008

तोस्त्रिंग एकुँल्स & 70-536 Microsoft .NET Certification Post #13

मेथोड्स 70-536
Microsoft .NET Certification
Post #13


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. As I stufy for this test I thought this would be good to post on to learn the content & others would be able to view & comment on it.



• All classes inherit the ToString(), Equals(), & GetType() methods from the base Object class
Reference Types – a type that stores a pointer to the data, rather than the actual data.
• Reference types store a pointer to the data rather than the actual data.
• Types forwarding enable moving a type from one assembly into another assembly without requiring recompiling.
• Exceptions are error condition that cause normal execution to be halted
Generics use placeholders for their types, which allow multiple types of objects to be used as a parameter
• The following methods all classes have as members:
  • • ToString()
  • • Equals()
  • • GetType()
  • • Short Type – can only store values between -32,769 & 32,769
As always all comments welcome.


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

Catto

Tuesday, November 18, 2008

ICompareable & Clone 70-536 Microsoft .NET Certification #12

ICompareable & Clone 70-536
Microsoft .NET Certification
Post #12


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. As I stufy for this test I thought this would be good to post on to learn the content & others would be able to view & comment on it.

• Implementing IDisposable enables developers to call the Dispose() method which allows your class to free any consumed resources without waiting for automated garbage collection.
Clone() method is inherited from the ICloneable interface
• The Clone() method is a member of the InCloneable interface

• The Dispose() method is a member of the IDisposable interface
• The CompareTo() method is a member of the IComparable interface

As always all comments welcome.

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

Catto

Cultures 70-536 Microsoft .NET Certification #11

Cultures 70-536
Microsoft .NET Certification
Post #11


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. As I stufy for this test I thought this would be good to post on to learn the content & others would be able to view & comment on it.

Neutral cultures are language, but not region specific. Neutral culture names are in the form xx, with only two lowercase characters.
Cultures with names in the format xx-XX are specific cultres & could be retrieved using CultureInfo.GetCulturs(CultureTypes.SpecificCultures)
CultureInfo objects examples: en, ko, ro
• Normal execution of program logic should not cause an exception. You should throw an exception whenever something unexpected happens, including receiving a parameter that is out of range.

As always all comments welcome.

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

Catto

Sunday, November 16, 2008

IComparer 70-536 Microsoft .NET Certification #10

IComparer 70-536
Microsoft .NET Certification
Post #10


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. As I stufy for this test I thought this would be good to post on to learn the content & others would be able to view & comment on it.


IComparer – is an interface that should be implemented when you are creating a new collection type that must be sorted by using Array Sort.
CompartTo() method is a member of the IComparable interface
Use the Icomparer interface for collections that must be sorted
• The ICollection interface is the base interface for classes in the System Collections namespace. It does not support sorting
• The IDictionary interface is the base interface for nongeneric collections of key/value pairs. It does not support sorting.
• The IEqualityComparer interface supports only equality comparisons.

As always all comments welcome.

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

Catto

Thursday, November 13, 2008

Event Handler 70-536 Microsoft .NET Certification #9

Event Handler 70-536
Microsoft .NET Certification
Post #9


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.

Event Handler delegates standard parameters are objects & EventArgs:
• Event handler delegates require two parameters an instance of the object class & an instance of the EventArgs class
The EventHandler class is a predefined delegate that specifically represents a€n event handler method for an event that does not generate data. It’s not a parameter for an event handler delegate
the Delegate class is the base class for delegate types. It’s not a parameter for event handler delegates.
the Event class is the base event for event types. It’s not a parameter for event handler delegates


As always all comments welcome.

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

Catto

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