1791

How to Update Members of a Collection with LINQ

Do you believe that you can update the items in the collection using a single line of code? Yes, it’s possible using the LINQ. There are several ways to update the items in the collection like using a foreach loop like below. but the problem here is that it’ll iterate through all items in the […]

Read More
1963

How to replace multiple characters in a string?

There are various ways by which we can achieve string replacement in the current string. Let’s start a discussion on the different ways of replacement of multiple characters in a string. 1. String.Replace Method: The string.Replace method returns a new string in which all occurrences of a specified character or string in the current string are replaced […]

Read More