16 April 2011

Commonly used interfaces in .Net

Commonly used interfaces
Class Description

Implemented by types whose values can be ordered; for example, the numeric and string classes. IComparable is required for sorting.

Defines methods for manually disposing of an object. This interface is important for large objects that consume resources, or objects that lock access to resources such as databases.

Enables a class to be converted to a base type such as Boolean,Byte, Double, or String.

Supports copying an object.

Allows you to compare to instances of a class for equality. For example, if you implement this interface, you could say “if (a == b)”.

Enables you to convert the value of an object into a specially formatted string. This provides greater flexibility than the base ToString method.

No comments:

Post a Comment

Comments Welcome