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