The following code snippet demonstrate how to use regx class to find out whether the specified string is found in a given text or not. From the given code you can search the string into string. Continue reading How to know whether a string is found in a text or not in C#
A prime number is a natural number greater than 1 that has no positive divisors other than 1 and itself. For example, 5 is prime because only 1 and 5 divide it, whereas 6 is composite because it has the divisors 2 and 3 in addition to 1 and 6. And now if i say that find the all prime numbers up to 6 then there are three numbers 2,3 and 5. Continue reading Get all prime numbers up to given number using Sieve of Eratosthenes algorithm in c#
We can use String.Join method to create a new string from an array of string. Let’ say I have a array of the some words and i want to create a sentence from this array then i can use The String.Join method with an array and a separator string. Continue reading Create a new string from an array of string through String.Join method
This article demonstrate how we can get the list of the files according specific search pattern with excluding some files. Suppose if a folder contains the following files: Continue reading Exclude specific files in file search with in a directory in C#
A palindrome is a word, number, or other sequence of units that can be read the same way in either direction.Through below code sample,you can check whether string is a palindrome or not using c#.
Continue reading How to check whether string is a palindrome or not using c#