This page last changed on Jul 18, 2005 by jflowers.
  1. Standards
    1. Idioms
      1. .NET
        Exception Handling
        Exception handling in .NET does not follow all the rules the way you might expect. A try catch block is basically a case statement checking for what exception type was thrown. The only reason to catch for a specific type, something other than System.Exception, is to take a different action than the other catch statements. This leads into why a custom exception class should be created; only when you have a need to take a different action than the other exceptions that may be caught by one or more try catch blocks. If the .NET framework provides an exception type that is appropriate for the error and the code executing in the try will not throw this type of exception then a new exception should not be created. If these guidelines are not followed the number of exception types will grow to an unmanageable size.
        Singleton
        Explain the different ways of implementing and the consequences of each.
        PAG
        See document: default.mspx
        Garbage Collection
        See document: scalenetchapt05.asp
        Threading
        See document: scalenetchapt05.asp
        Values and Reference Types
        See document: scalenetchapt05.asp
        Exception Management
        See document: scalenetchapt05.asp
        MS Guidelines
        See document: default.asp
        Relationship to the Common Type System and the Common Language Specification
        See document: cpconrelationshiptocommontypesystemcommonlanguagespecification.asp
        Naming Guidelines
        Class Member Usage Guidelines
        See document: cpconnamingguidelines.asp
        Type Usage Guidelines
        See document: cpconclassmemberusageguidlines.asp
        Guidelines for Exposing Functionality to COM
        See document: cpconexposingfunctionalitytocom.asp
        Error Raising and Handling Guidelines
        See document: cpconerrorraisinghandlingguidelines.asp
        Array Usage Guidelines
        See document: cpconarrayusageguidelines.asp
        Operator Overloading Usage Guidelines
        See document: cpconoperatoroverloadingusageguidelines.asp
        Guidelines for Implementing Equals and the Equality Operator (==)
        See document: cpconimplementingequalsoperator.asp
        Guidelines for Casting Types
        See document: cpconcasts.asp
        Common Design Patterns
        See document: cpconcommondesignpatterns.asp
        Security in Class Libraries
        See document: cpconsecurityinclasslibraries.asp
        Threading Design Guidelines
        See document: cpconthreadingdesignguidelines.asp
        Guidelines for Asynchronous Programming
        See document: cpconasynchronousexecution.asp
Document generated by Confluence on Jun 11, 2007 11:56