In this post, here is the C# code to convert DataTable to Dictionary. while working with DataSet or DataTable we may need key value pair to get Value by Id approach. So you may need to convert your DataTable to key value type i.e, Dictionary. you can also use Dictionary… Continue Reading DataTable to Dictionary Conversion in C#.Net

In this post, here is the VB.Net code to count the occurrences of a particular string in a another given string . Suppose there is a case  where we may want to check whether the string contains particular substring or not. And we may want to count the occurrences of… Continue Reading VB.Net Code to Count occurrences of String in Another String

In this post, here is the C# code to count the occurrences of a particular string in a given string. Suppose there is a case  where we may want to check whether the string contains particular substring or not. And we may want to count the occurrences of the substring,… Continue Reading C#.Net Code to Count occurrences of String in Another String

VB.Net Code to get Reverse of a Number In this post, here is the VB.Net code to get the reverse of a number. You can also use this method while checking whether the number is Palindrome.If the input number and the reversed input number are same, then the number is… Continue Reading VB.Net Code to get reverse of a Number

In this post, here is the C#.Net code to get the reverse of a number. Getting Reverse of a string is quite easy using string functions but for a number it differs.Here we will see how to get reverse of a number without using any built-in methods. You can also… Continue Reading C#.Net Code to get reverse of a Number

In this post, here is the VB.Net code to count the occurrences of a particular character in a given string.Suppose there is a case  where we may want to check whether the string contains particular character or not. And we may want to count the occurrences of the character, in… Continue Reading Count the occurrences of a character in a string in VB.NET

In this post, here is the c# code to count the occurrences of a particular character in a given string. Suppose there is a case  where we may want to check whether the string contains particular character or not. And we may want to count the occurrences of the character,… Continue Reading Count the occurrences of a character in a string in C#.Net