C#, Use Of abstract, Use Of interface

When to use abstract class and interface with real time example

Introduction Hi guys, here I will discuss when to use abstract class and interface in real-time. This is one of the terrible questions in every C# and JAVA interview.  when to use abstract class and interface Suppose we have a school application product, in that product we have some common methods like GetStudentInfo, GetFacultyInfo which is applicable for all the…

Continue Reading

C#, C# Parameter

Named parameter in C#

Introduction In this article I will discuss about named parameter. Now-a-days in most of the interview you will get this question. Implementation When we are passing some parameter to methods that time we have to remember the parameter orders, because if the parameter execution order will not same as per the passed sequence, then it will cause of the error.…

Continue Reading

C#

How to subtract two strings in c#.net

Introduction Subtract integer, decimal values are too much easy, but when someone asks How to subtract two strings, then we get a little bit shock. So in this article I will share how to demonstrate this. Implementation For performing this, I will create a console application using C#. I will take 3 strings as variables, from those I will take 2 strings…

Continue Reading

C#, DataTable, SQL, sql server table valued parameter performance, table valued parameter in sql server

How to pass data-table as parameter to a stored procedure in MSSQL from C# Application

Introduction Here I will discuss how to pass/send a data-table as parameter to a stored procedure from c# application.In other words, we can say how to pass table valued parameter as parameter in the stored procedure in SQL server. When we are sending one line of query to the stored procedure that time, we can send our defined variable, during…

Continue Reading