About 661,000 results
Open links in new tab
  1. c# - How to remove a defined part of a string? - Stack Overflow

    Mar 15, 2011 · The purpose of the question is to search for and delete a string from the beginning of another string. With your method you can not dynamically identify the location of the string …

  2. Trimming and Removing Characters from Strings in .NET - .NET

    Oct 4, 2022 · Learn to trim blank spaces from the beginning or end of a string, or remove any number of spaces or characters from a specified position in the string in .NET.

  3. Efficient Ways to Remove Substrings from Strings in C#

    Aug 7, 2024 · Another way to remove a substring from a string in C# is by utilizing the String.Remove method. This method allows you to remove a specified number of characters …

  4. C# String Remove () Method - GeeksforGeeks

    Jul 11, 2025 · In C#, the Remove () method of the String class is used for removing the characters from the specified position of a string. If the length is not specified, then it will remove all the …

  5. C#: How to Remove the First Occurrence of a Substring from a ...

    Nov 20, 2025 · String manipulation is a cornerstone of programming, and one common task developers encounter is removing the first occurrence of a specific substring from a string. …

  6. C# String Remove: A Complete Tutorial with Examples

    Learn how to effectively remove characters, substrings, or whitespace from strings in C# with this comprehensive tutorial. Master various string manipulation techniques using built-in C# …

  7. C# String Remove () (With Examples) - Programiz

    The String Remove () method removes a specified number of characters from the string. In this tutorial, we will learn about the C# String Remove () method with the help of examples.

  8. String.Remove Method (System) | Microsoft Learn

    Returns a new string in which a specified number of characters from the current string are deleted.