C# String Functions

Topics: String, Data type, Replacement Pages: 2 (325 words) Published: January 15, 2013
C# String Functions

1. Concat - Concatenates two specified instances of String.

2. Contains - Returns a value indicating whether the specified String object occurs within this string.

3. EndsWith - Determines whether the end of this string instance matches the specified string.

4. Equals - Determines whether this instance and another specified String object have the same value.

5. Format - Replaces one or more format items in a specified string with the string representation of a specified object.

6. IndexOf - Reports the zero-based index of the first occurrence of the specified string in this instance.

7. Insert - Returns a new string in which a specified string is inserted at a specified index position in this instance.

8. IsNullOrEmpty - Indicates whether the specified string is Nothing or an Empty string.

9. Join - Concatenates the elements of an object array, using the specified separator between each element.

10. LastIndexOf - Reports the zero-based index position of the last occurrence of a specified string within this instance.

11. Remove - Returns a new string in which a specified number of characters in the current this instance beginning at a specified position have been deleted.

12. Replace - Returns a new string in which all occurrences of a specified string in the current instance are replaced with another specified string.

13. StartsWith - Determines whether the beginning of this string instance matches the specified string.

14. Substring - Retrieves a substring from this instance. The substring starts at a specified character position and has a specified length.

15. ToLower - Returns a copy of this string converted to lowercase.

16. ToUpper - Returns a copy of this string converted to uppercase.

17. Trim - Removes all leading and trailing white-space characters from the current String object.

18. TrimEnd - Removes all trailing occurrences of a set of characters specified in an array from...
Continue Reading

Please join StudyMode to read the full document

You May Also Find These Documents Helpful

  • C Essay
  • Essay about production function
  • function Essay
  • C Programms Essay
  • A First Book of Ansi C Fourth Edition Chapter 9 Character Strings Essay
  • Essay about Operators in C
  • C++ HW1 ANSWER Essay
  • C++ solution Essay

Become a StudyMode Member

Sign Up - It's Free