Skip to main content

Coding Standards

Class & Method Declaration Standards:

Describes the role of the common type system and the Common Language Specification in class library development.
Describes the guidelines for naming types in class libraries.
Describes the guidelines for using properties, events, methods, constructors, fields, and parameters in class libraries.
Describes the guidelines for using classes, value types, delegates, attributes, and nested types in class libraries.
Describes the guidelines for exposing class library types to COM.
Describes the guidelines for raising and handling errors in class libraries.
Describes the guidelines for using arrays in class libraries and how to decide whether to use an array vs. a collection.
Describes the guidelines for implementing operator overloading in base class libraries.
Describes the guidelines for implementing the Equals method and the equality operator (==) in class libraries.
Describes the guidelines for casting types in class libraries.
Describes how to implement design patterns for Finalize and Dispose methods, the Equals method, callback functions, and time-outs.
Describes the precautions to take when writing highly trusted class library code, and how to help protect resources with permissions.
Describes the guidelines for implementing threading in class libraries.
Describes the guidelines for implementing asynchronous programming in class libraries and provides an asynchronous design pattern.


Comments

Popular posts from this blog

How to store the sharepoint List or List Item within the recycle bin of the site while deleting it programmatically ?

Whenever we delete a sharepoint list or list item from the User Interface it get stored within the recycle bin of the site. But when we delete it programmatically it get's deleted permanently. So what we can do to store the List or List Item within the recycle bin while deleting it programmatically ? Generally we use the list.Delete() or item.Delete() method to delete the list or item. Instead of using the Delete() method we can use the Recycle() method i.e list.Recycle() or item.Recycle(). This will store the item within the recycle bin.