Commonly used interfaces
Class Description
IComparable
-----------
Implemented by types whose values can be ordered; for example, the numeric and string classes. IComparable is required for sorting.
IDisposable
-----------
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.
IConvertible
------------
Enables a class to be converted to a base type such as Boolean,Byte, Double, or String.
ICloneable
----------
Supports copying an object.
IEquatable
----------
Allows you to compare to instances of a class for equality. For example, if you implement this interface, you could say “if (a == b)”.
IFormattable
------------
Enables you to convert the value of an object into a specially formatted string. This provides greater flexibility than the base ToString method.
Dotnet, DotnetCore, Azure, C#,VB.net, Sql Server, WCF, MVC ,Linq, Javascript and Jquery
Showing posts with label Commonly used interfaces in .Net. Show all posts
Showing posts with label Commonly used interfaces in .Net. Show all posts
Subscribe to:
Comments (Atom)
Benefits of microservices
Benefits of microservices 1. Development & Team Agility Architecture- and language-neutral: Teams aren't locked into one progr...
-
ViewBag, ViewData, TempData and View State in MVC ASP.NET MVC offers us three options ViewData, ViewBag and TempData for passing data from...
-
View in Sql Server 2008 Creates a virtual table whose contents (columns and rows) are defined by a query. Use this statement to create a vie...
-
// Export Datatable to Excel in C# Windows application using System; using System.Data; using System.IO; using System.Windows.Forms; ...