Introduction In this article, I will discuss how to find the rank of an array using C#. Description Here I will discuss how to determine the rank of an array, Rank of an array means how to state the dimension of an array. Here we will perform using C#. C# has a predefined Rank property by which we can find…
Category: C#
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…
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.…
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…
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…