Interface vs Abstract class in C#

What is Interface? An interface is a contract with the list of the method defined in the interface.An interface can only have the method definition.Any class implementing the interface should […]

Swap two variable without using the third variable

using System; namespace Swap { class Program { private static void Main(string[] args) { int a = 1000; int b = 999; Console.WriteLine(“Before Swap”); Console.WriteLine(“Value of A :{0} “, a); […]

Sum of digits till the sum is one-digit number

public class SumtillDigitOne { private long _sum = 0; public long SumAllNumberTillDigitOne(long bigno) { if (bigno == 0) { if (_sum > 9) { bigno = _sum; _sum = 0; […]

Html Form validation using one function of javascript

<script type=”text/javascript”> function validateform() { var txtcontrols = document.getElementsByTagName(“input”); for (var count = 0; count &lt; txtcontrols.length; count++) { if (txtcontrols[count].value == ”) { errmsg.innerHTML = “Please Enter ” + […]

Solid Principles of OOP

Object oriented programming has 5 basic rules that we called solid rules where s stands for Single Responsibility Principle,o stand for Open Close principle,l stand for Liskov Substitution Principle,I stand […]

What is Dmarc Policy?

DMARC – What is it? DMARC, which stands for “Domain-based Message Authentication, Reporting &amp; Conformance”, is a technical specification created by a group of organizations that want to help reduce […]

Singleton thread-safe class in c#

Introduction The singleton pattern is one of the best-known patterns in software engineering. Essentially, a singleton is a class which only allows a single instance of itself to be created, […]

Handle CreatedDate,ModifiedDate,CreatedBy and ModifiedBy in Entity Framework

What is created date and Modified date and when we use this? Keeping CreatedDate, ModifiedDate,  CreatedBy, and ModifiedBy or auditing columns in the database tables is part of good practices […]

Dot Net Interview questions for Experience

What is connection pooling? When should we use connection pooling? What is strong Dll? What is bucketing in the database? Do we need a certificate in client machine for HTTPS? […]