Difference Between IEnumerable, ICollection and IList Interface in C#

Posted 3 CommentsPosted in .net, C#.net

In this article, we will understand: What is IEnumerable interface and when to use it? What is ICollection Interface and When to use it? What is IList  Interface and When to use it?   IEnumerable Interface: There are two different interfaces defined in the .NET base class library.There is a non-generic IEnumerable interface and there is […]

Inversion of Control, Dependency Injection and Service Locator in C#

Posted 4 CommentsPosted in .net, C#.net

In this article, we will learn:   What is Dependency Inversion Principle (DIP) What is Inversion of Control (IOC) What is  Service Locator? What is Dependency Injection? Difference between DIP and IOC (DIP vs IoC) Difference between Dependency Injection and Service Locator (DI vs SL)   Many developers get confused with the term Dependency Injection. mainly […]

Top 20 ASP.NET MVC Interview Questions

Posted Posted in .net, ASP.Net MVC, Interview questions

1.What is ASP.net MVC or Explain the overview of MVC (Model-View-Controller)? MVC (Model-View-Controller) is an software design pattern that decouples various components of a web application. By using MVC pattern, we can develop applications that are more flexible to changes without affecting the other components of our application.  “Model”, is domain data.  “View”, is user […]

ASP.net Interview Questions (Part-1)

Posted Posted in .net, ASP.net, Interview questions

In this article,We will discuss few ASP.net interview questions with answers for beginners and experienced professionals. 1.What is the Postback in ASP.NET? A postback is a request sent from a client to server from the same page, user is already working with. Add a new ASP.NET web form page to a project e.g. WebForm1.aspx. View […]

Design Patterns overview in C# (Part – 1)

Posted 1 CommentPosted in .net, .net Framework, ASP.net, C#.net

In this article, we will discuss the overview of Design patterns in C#. Let’s understand what is Pattern? “Pattern is a recurring solution to a problem in a context“. “Each pattern describes a problem which occurs over and over again in our environment, and then describes the core of the solution to that problem, in […]

Difference Between Constant, ReadOnly and Static ReadOnly in C#

Posted Posted in .net, ASP.net

In this article, we will discuss the very common keywords in C# (constant, ReadOnly and Static ReadOnly) and discuss the difference between these keywords. Constants: A constant is a variable modifier that represents a constant value, a value that can be computed at compile-time.By default a const is static and we cannot change the value […]

var vs Dynamic in C#

Posted Posted in .net, C#.net

var dynamic Introduced in C# 3.0 Introduced in C# 4.0 Statically typed – This means the type of variable declared is decided by the compiler at compile time. Dynamically typed – This means the type of variable declared is decided by the compiler at run time. var type of variables are required to be initialized […]