enow.com Web Search

Search results

  1. Results from the WOW.Com Content Network
  2. String Class (System) | Microsoft Learn

    learn.microsoft.com/en-us/dotnet/api/system.string

    Splits a string into a maximum number of substrings based on a specified delimiting character and, optionally, options. Splits a string into a maximum number of substrings based on the provided character separator, optionally omitting empty substrings from the result. Split(Char, StringSplitOptions)

  3. C# String Methods - Programiz

    www.programiz.com/csharp-programming/library/string

    A C# String is a class; it provides various methods to perform different operations on strings. On this reference page, you will find all the popular string methods available in C#. For example, the String compare() method allows us to compare two strings in sort order.

  4. How to modify string contents - C# | Microsoft Learn

    learn.microsoft.com/en-us/dotnet/csharp/how-to/modify-string-contents

    Review examples of several techniques to modify existing string contents in C#, which return a new string object.

  5. C# Strings - W3Schools

    www.w3schools.com/cs/cs_strings.php

    A string in C# is actually an object, which contain properties and methods that can perform certain operations on strings. For example, the length of a string can be found with the Length property:

  6. Basic String Manipulations in .NET - .NET | Microsoft Learn

    learn.microsoft.com/en-us/dotnet/standard/base-types/basic-manipulations

    The following example uses some of the methods discussed in the Basic String Operations topics to construct a class that performs string manipulations in a manner that might be found in a real-world application.

  7. C# String (With Examples) - Programiz

    www.programiz.com/csharp-programming/string

    String Operations. C# string provides various methods to perform different operations on strings. We will look into some of the commonly used string operations. 1. Get the Length of a string. To find the length of a string, we use the Length property. For example, using System; namespace CsharpString {.

  8. C# String Methods - C# Tutorial

    www.csharptutorial.net/csharp-string-methods

    This page introduces you to the most commonly used C# String methods, which allow you to manipulate strings effectively, including operations such as searching, replacing, formatting, and extracting substrings, among others.

  9. C# String - scholarhat.com

    www.scholarhat.com/tutorial/csharp/c-sharp-string

    In this C# tutorial, I'll break down the key concepts of working with strings, common methods for string manipulation, and why mastering them is essential for building high-performing, reliable applications. Let’s dive in! What is the C# string? In C#, a string is a data type that stores character sequences such as words or sentences.

  10. C# String Methods - CodeToFun

    codetofun.com/c-sharp/string-methods

    Explore the power of C# String Methods to effortlessly manipulate and analyze text in your code. From simple operations to advanced transformations, master the art of string handling for enhanced programming efficiency.

  11. FInd out how to work with strings in C# project, what type of String Methods in C# exists, and how to use them through examples.

  12. Strings, String Manipulation, and Cultures - C# In Simple Terms

    exceptionnotfound.net/csharp-in-simple-terms-19-string-manipulation-and-cultures

    Creating and Using a Culture Object. We can create a culture object using the culture's code and the CultureInfo class. CultureInfo myCulture = new CultureInfo("es-ES"); //Spain - Spanish. When converting objects to strings, we can pass in the format object of the culture to an overload of ToString().

  13. Working with Strings in C#: A Comprehensive Guide

    medium.com/@praveen.rao.g.1990/working-with-strings-in-c-a-comprehensive-guide...

    In C#, strings are used to represent text and manipulate textual data. They are widely used in various applications, from simple console applications to complex web and desktop applications....

  14. C# | String - GeeksforGeeks

    www.geeksforgeeks.org/c-sharp-string

    The String has to use the System.String class methods, such as String.SubString, String.IndexOf etc. The string is only an alias of System.String. Note: In .NET, the text is stored as a sequential collection of the Char objects so there is no null-terminating character at the end of a C# string.

  15. Basic String Operations in .NET - .NET | Microsoft Learn

    learn.microsoft.com/en-us/dotnet/standard/base-types/basic-string-operations

    Several methods in the System.String and System.Text.StringBuilder classes allow you to dynamically construct custom strings to display in your user interface. These methods also help you perform a number of basic string operations like creating new strings from arrays of bytes, comparing the values of strings, and modifying existing strings.

  16. String in C# with Examples - Dot Net Tutorials

    dotnettutorials.net/lesson/string-in-csharp

    In C#, the string is an object of the String class that represents a sequence of characters. We can perform many operations on strings such as concatenation, comparison, getting substring, search, trim, replacement, etc.

  17. String Manipulation in CSharp - iNetTutor.com

    www.inettutor.com/source-code/string-manipulation-in-csharp

    These methods include Substring (extracting a portion of a string), ToUpper and ToLower (changing the case of characters in a string), Replace (replacing specific characters or substrings in a string), and Split (splitting a string into an array of substrings based on a delimiter).

  18. String Manipulation in C#: Best Practices - Steve Gordon - Code...

    www.stevejgordon.co.uk/string-manipulation-in-csharp-best-practices

    Introducing Chars. Declaring and Initializing Chars. Strings and Characters. Char Static Methods. String and Char Best Practices. Comparing Strings. Once you begin using strings in your applications, comparing them will be an extremely common operation.

  19. C# String Functions and Properties

    www.completecsharptutorial.com/csharp-articles/csharp-string-function.php

    There are dozens of inbuilt C# String Function that provide easy manipulation of string. You can use easily String Function and Properties of C sharp in programming.

  20. C# | String class - GeeksforGeeks

    www.geeksforgeeks.org/c-sharp-string-class

    Constructor. Example: // C# program to demonstrate the creation. // of string using the constructor. usingSystem; classGeeks { . // Main Method. publicstaticvoidMain () { char[] chars = { 'G', 'E', 'E', 'K', 'S'};

  21. Lecture overview String manipulation in C# - University of...

    pages.cs.wisc.edu/~estan/cs638/slides/Lecture 9 - Csharp strings.pdf

    String manipulation methods. Some methods of the String class. Trim() removes whitespaces from both ends of string.

  22. C# String Tutorial – String Methods With Code Examples

    www.softwaretestinghelp.com/c-sharp/csharp-strings

    In this tutorial, we learned about the String class in C#. We also looked into some of the most commonly used methods from the String class. We learned how to trim, replace, close, insert, copy, etc. a string. We also learned how to perform validations on a given string by using methods such as equals and contains.

  23. Best Practices for Comparing Strings in .NET - .NET

    learn.microsoft.com/en-us/dotnet/standard/base-types/best-practices-strings

    Various string-related methods perform comparison. Examples include String.Equals, String.Compare, String.IndexOf, and String.StartsWith. Use overloads that explicitly specify the string comparison rules for string operations. Typically, this involves calling a method overload that has a parameter of type StringComparison.

  24. How to use extension methods in C# - InfoWorld

    www.infoworld.com/article/3543666/how-to-use-extension-methods-in-c-sharp.html

    To define an extension method in C#, follow these steps: Create a class in C# and use the “static” keyword to mark the class as static. Define a static method inside the class, i.e., a method ...

  25. Divide strings using String.Split - C# | Microsoft Learn

    learn.microsoft.com/en-us/dotnet/csharp/how-to/parse-strings-using-split

    The String.Split method creates an array of substrings by splitting the input string based on one or more delimiters. This method is often the easiest way to separate a string on word boundaries. It's also used to split strings on other specific characters or strings. Note.

  26. C# Strings - Javatpoint

    www.javatpoint.com/c-sharp-strings

    C# Strings for beginners and professionals with examples on overloading, method overriding, inheritance, aggregation, base, polymorphism, sealed, abstract, interface, namespaces, exception handling, file io, collections, multithreading, reflection etc.