Sign In | Subscribe

Enter your Sign on user name and password.

Forgot password?
  • Follow us on:
Start learning today, and be successful in your academic & professional career. Start Today!
Loading video...
This is a quick preview of the lesson. For full access, please Log In or Sign up.
For more information, please see full course syllabus of C#
  • Discussion

  • Study Guides

  • Table of Contents

Lecture Comments (2)

0 answers

Post by Carl Scaglione on September 22 at 01:07:11 AM

This lecture covers a long and interesting body of code.  The code that is available in the 'Exercise Files' is the original version, not that which is corrected in the lecture.  Where is the corrected code?  The uncorrected code does not operate successfully.

0 answers

Post by Carl Scaglione on September 21 at 09:06:57 PM

The previous lecture, "Reading & Understanding Code" does not exist.  Why does it continue to be posted on the lecture listing?

Creating a Data Type

  • Implementing IComparable, IComparer and IEquatable is important for your own data types if you want to use them in a generic list
  • When creating your own data types, be sure to code all the functions you’ll need for now and in the future
  • If there are limits on your data types, you can avoid many problems by weeding them out in the Constructors
  • Using InvalidCastException, ArgumentOutOfRangeException and other common exceptions allow others to use the standard errors without having to deal with unique error types
  • You’ll have to decide if a narrowing conversion drops precision or throws an exception
  • Optimizing and testing your data type is very important