Tag: How to
How to use SQL like Operator in LINQ and C#?
In a SQL Query, one might use the Like Query which can be used along with the % operator to search of contains within the data. How to use SQL like Operator in LINQ and C#? This article will show it with a sample code snippet. How to use SQL like Operator in LINQ and C#? Below is a sample source code demonstrating the usage…
How to check if the number is positive or negative in C# ?
You can use the > and < operator to check if the number is a positive or negative number in C#. How to check if the number is positive or negative in C# ? If the number is less than zero , it can be considered as negative number. If the number is greater than zero , it is a positive number. Below is a…
C Program to check if a number is odd or even
Problem Write a program in C language to check whether a given number is even or odd. How to check if a Number is Odd or Even in C ? An integer that is divisible by 2 is an even number and that is not divisible by 2 is an odd number. Example of even number is 2 , 4, 12 etc. Example of an…
How to copy tables from a database to another in SQL Server ?
There are times when you may want to copy the tables from one database to another along with the data or import data along with the schema in SQL Server. One of the ways to do this is using the SQL Server Import/Export Wizard. How to copy tables from a database to another in SQL Server ? 1. Launch SQL Server Import and export wizard…
How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?
Below is a sample code snippet that demonstrates how to programmatically check if the Location Services is turned On or Off in Windows Phone 8 . How to Programatically Check if the Location Services is Turned On or Off in Windows Phone 8 ?
How to Debug a Windows Service written in C# ?
Debugging a Windows Service is one of the difficult thing to do when working on developing a Windows Service project in Visual Studio . One of the method to do the debugging is to attach the debugger to the thread and starting the Windows Service. . This might be little overhead sometimes. How to Debug a Windows Service written in C# ? Incase you need…
C Program to Swap two Numbers without using temporary variable
Problem Write a program in C language to swap two numbers without using temporary variable and display the result in the screen. How to Swap two numbers in C without using temporary variable? Output Abundantcode – Swap two numbers without using temporary variable Enter First Number: 1 Enter Second Number: 7 FirstNumber = 7.00 SecondNumber = 1.00
Example of Lambda Expression with Action method with String as Parameter in C#
Below is a sample code snippet that demonstrates the lambda expression with action method with string as parameter in C#. Example of Lambda Expression with Action method with String as Parameter
How to detect if a key exists in a Dictionary in C# ?
If you want to detect if a key exists in a dictionary in C# , you can use the contains method of the dictionary which return true if the key is found. How to detect if a key exists in a Dictionary in C# ? Below is a sample source code that illustrates how to find out if the exists in a dictionary using the…
Built-in method to validate email address in C#
Are you looking for a built-in method in C# which lets you validate email address. If yes , you can use the EmailAddressAttribute class that is defined in the System.ComponentModel.DataAnnotations namespace to do it. How to validate email address in C# using EmailAddressAttribute class ? Below is a sample code snippet demonstrating the usage of the EmailAddressAttribute class to validate the email address in C#.
How to change positive numbers to negative in Microsoft Excel 2016 ?
Do you want to change the positive numbers to negative numbers and vice versa (or in simple terms) , reverse the sign of the numbers in Microsoft Excel 2016 ?. This blog post will provide you a simple tip on how to do it using the Paste special function. How to change positive numbers to negative in Microsoft Excel 2016 ? 1. Type the number…
Using BETWEEN clause to specify range of values in SQL Query
In SQL Server 2014 , you can use the BETWEEN clause to specify a range of values in the search criteria. How to specify a range of values in a Query in SQL Server ? For example , you want to to query the Employee table to display the employees having the birthdate between 1969-01-29 and 1975-12-01′ , you can use the BETWEEN clause as…