Friday, 2 February 2007

Test Yourself

Things you should be able to do by now if you have been following along and doing abit of your own research on the subject areas that have been mentioned.

  • Create two classes with identical functionality. Use generics for one and cast the second class to Object types. Create a foor loop that uses the class over thousands of iterations, test the timing's of both classes, which is faster, by how much?
  • Create a custom class that implements the necessary interfaces to allow sorting of an array containg your custom class.
  • Create a custom class that can be converted to common value types.
  • Create a custom class, which uses the operator keyword to take care of narrowing & widening conversions.
  • Create a custom class, which implements IDisposable.Dispose method.
  • Write a custom event handler and respond to your events within a class.

1 comment:

ESTEBAN ALVINO Q. said...

hello
im following the exam 70-536, and i ask you if
do you have the answer for the question
"Create a custom class that can be converted to common value types."?
if you do.
please post o send me it,
to my mail ealvinoq@gmail.com
Thanks
Best Regards