Fundamental differences between struct and class. Class Class is a reference type and its object is created on the heap memory. Class can inherit the another class. Class can have the all types of constructor and destructor. The member variable of class can be initialized directly. Class object can not be created without using the new […]
People don’t see the difference between events and delegates sometimes. Delegate is a class that contains a field that holds a reference to a method and then you can call the method with appropriate parameters. Whereas an event is a variable that you can define and specify one or more delegates to be added to it.
Filters inject extra logic into MVC Framework request processing. They provide a simple and elegant way to implement cross-cutting concerns. This term refers to functionality that is used all over an application and doesn’t fit neatly into any one place, where it would break the separation of concerns pattern. Classic examples of cross-cutting concerns are […]
On the client: Cookie On the server: Cache (make sure to use user specific key to avoid collisions) Some back-end storage (such as a database) ASP.NET Session ViewData – dictionary that accessible by string keys ViewBag – ViewData wrapper that allows to create dynamic properties. In addition we can use TempData that is basically dictionary that […]
WCF has a couple of built in bindings which are designed to fulfill some specific need. You can also define your own custom binding in WCF if necessary. All built in bindings are defined in the System.ServiceModel Namespace. Here is the list of bindings which are commonly used: