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

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,… 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