String Methods


.NET Framework Class Library
String Methods

The String type exposes the following members.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCloneReturns a reference to this instance of String.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareOverloaded. Compares two specified String objects and returns an integer that indicates their relationship to one another in the sort order.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareOrdinalOverloaded. Compares two String objects by evaluating the numeric values of the corresponding Char objects in each string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCompareToOverloaded. Compares this instance with a specified object or String and returns an integer that indicates whether this instance precedes, follows, or appears in the same position in the sort order as the specified object or String.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkConcatOverloaded. Concatenates one or more instances of String, or the String representations of the values of one or more instances of Object.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkContainsReturns a value indicating whether the specified String object occurs within this string.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCopyCreates a new instance of String with the same value as a specified String.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkCopyToCopies a specified number of characters from a specified position in this instance to a specified position in an array of Unicode characters.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEndsWithOverloaded. Determines whether the end of an instance of String matches a specified string.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualsOverloaded. Determines whether two String objects have the same value.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkFormatOverloaded. Replaces each format item in a specified string with the text equivalent of a corresponding object's value.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetEnumeratorRetrieves an object that can iterate through the individual characters in this string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetHashCodeReturns the hash code for this string. (Overrides Object..::.GetHashCode()()().)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkGetTypeCodeReturns the TypeCode for class String.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIndexOfOverloaded. Reports the index of the first occurrence of a String, or one or more characters, within this string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIndexOfAnyOverloaded. Reports the index of the first occurrence in this instance of any character in a specified array of Unicode characters.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInsertInserts a specified instance of String at a specified index position in this instance.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInternRetrieves the system's reference to the specified String.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsInternedRetrieves a reference to a specified String.
Public methodIsNormalizedOverloaded. Indicates whether this string is in a particular Unicode normalization form.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIsNullOrEmptyIndicates whether the specified String object is nullNothingnullptra null reference (Nothing in Visual Basic) or an Empty string.
Public methodStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkJoinOverloaded. Concatenates a specified separator String between each element of a specified String array, yielding a single concatenated string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastIndexOfOverloaded. Reports the index position of the last occurrence of a specified Unicode character or String within this instance.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkLastIndexOfAnyOverloaded. Reports the index position of the last occurrence in this instance of one or more characters specified in a Unicode array.
Protected methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodNormalizeOverloaded. Returns a new string whose binary representation is in a particular Unicode normalization form.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkPadLeftOverloaded. Returns a new string of a specified length in which the beginning of the string is padded with spaces or a specified Unicode character.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkPadRightOverloaded. Returns a new string of a specified length in which the end of the string is padded with spaces or a specified Unicode character.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkRemoveOverloaded. Returns a new string in which a specified number of characters from this instance are deleted.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkReplaceOverloaded. Returns a new string in which all occurrences of a specified Unicode character or String in this instance are replaced with another specified Unicode character or String.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSplitOverloaded. Returns a string array that contains the substrings in this instance that are delimited by elements of a specified string or Unicode character array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkStartsWithOverloaded. Determines whether the beginning of an instance of String matches a specified string.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkSubstringOverloaded. Retrieves a substring from this instance.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToCharArrayOverloaded. Copies the characters in this instance to a Unicode character array.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToLowerOverloaded. Returns a copy of this String converted to lowercase.
Public methodToLowerInvariantReturns a copy of this String object converted to lowercase using the casing rules of the invariant culture.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToStringOverloaded. Converts the value of this instance to a String.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkToUpperOverloaded. Returns a copy of this String converted to uppercase.
Public methodToUpperInvariantReturns a copy of this String object converted to uppercase using the casing rules of the invariant culture.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTrimOverloaded. Returns a new string in which all leading and trailing occurrences of a set of specified characters from the current String object are removed.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTrimEndRemoves all trailing occurrences of a set of characters specified in an array from the current String object.
Public methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkTrimStartRemoves all leading occurrences of a set of characters specified in an array from the current String object.
Top
Operators

  NameDescription
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkEqualityDetermines whether two specified String objects have the same value.
Public operatorStatic memberSupported by the .NET Compact FrameworkSupported by the XNA FrameworkInequalityDetermines whether two specified String objects have different values.
Top
Extension Methods

  NameDescription
Public Extension MethodAggregateApplies an accumulator function over a sequence. (Defined by Enumerable.)
Public Extension MethodAllDetermines whether all elements of a sequence satisfy a condition. (Defined by Enumerable.)
Public Extension MethodAnyOverloaded. Determines whether any element of a sequence exists or satisfies a condition.
Public Extension MethodAsEnumerableReturns the input typed as IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodAsQueryableOverloaded. Converts an IEnumerable or generic IEnumerable<(Of <(T>)>) to an IQueryable or generic IQueryable<(Of <(T>)>).
Public Extension MethodAverageOverloaded. Computes the average of a sequence of numeric values.
Public Extension MethodCastConverts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension MethodConcatConcatenates two sequences. (Defined by Enumerable.)
Public Extension MethodContainsOverloaded. Determines whether a sequence contains a specified element.
Public Extension MethodCountOverloaded. Returns the number of elements in a sequence.
Public Extension MethodDefaultIfEmptyOverloaded. Returns the elements of an IEnumerable<(Of <(T>)>), or a default valued singleton collection if the sequence is empty.
Public Extension MethodDistinctOverloaded. Returns distinct elements from a sequence.
Public Extension MethodElementAtReturns the element at a specified index in a sequence. (Defined by Enumerable.)
Public Extension MethodElementAtOrDefaultReturns the element at a specified index in a sequence or a default value if the index is out of range. (Defined by Enumerable.)
Public Extension MethodExceptOverloaded. Produces the set difference of two sequences.
Public Extension MethodFirstOverloaded. Returns the first element of a sequence.
Public Extension MethodFirstOrDefaultOverloaded. Returns the first element of a sequence, or a default value if no element is found.
Public Extension MethodIntersectOverloaded. Produces the set intersection of two sequences.
Public Extension MethodLastOverloaded. Returns the last element of a sequence.
Public Extension MethodLastOrDefaultOverloaded. Returns the last element of a sequence, or a default value if no element is found.
Public Extension MethodLongCountOverloaded. Returns an Int64 that represents the number of elements in a sequence.
Public Extension MethodMaxOverloaded. Returns the maximum value in a sequence of values.
Public Extension MethodMinOverloaded. Returns the minimum value in a sequence of values.
Public Extension MethodOfTypeFilters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)
Public Extension MethodReverseInverts the order of the elements in a sequence. (Defined by Enumerable.)
Public Extension MethodSequenceEqualOverloaded. Determines whether two sequences are equal according to an equality comparer.
Public Extension MethodSingleOverloaded. Returns a single, specific element of a sequence of values.
Public Extension MethodSingleOrDefaultOverloaded. Returns a single, specific element of a sequence of values, or a default value if no such element is found.
Public Extension MethodSkipBypasses a specified number of elements in a sequence and then returns the remaining elements. (Defined by Enumerable.)
Public Extension MethodSkipWhileOverloaded. Bypasses elements in a sequence as long as a specified condition is true and then returns the remaining elements.
Public Extension MethodSumOverloaded. Computes the sum of a sequence of numeric values.
Public Extension MethodTakeReturns a specified number of contiguous elements from the start of a sequence. (Defined by Enumerable.)
Public Extension MethodTakeWhileOverloaded. Returns elements from a sequence as long as a specified condition is true, and then skips the remaining elements.
Public Extension MethodToArrayCreates an array from a IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodToListCreates a List<(Of <(T>)>) from an IEnumerable<(Of <(T>)>). (Defined by Enumerable.)
Public Extension MethodUnionOverloaded. Produces the set union of two sequences.
Public Extension MethodWhereOverloaded. Filters a sequence of values based on a predicate.
Top
Explicit Interface Implementations

  NameDescription
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIEnumerable<(Of <(Char>)>)..::.GetEnumeratorReturns an enumerator that iterates through the current String object.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIEnumerable..::.GetEnumeratorReturns an enumerator that iterates through the current String object.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToBooleanInfrastructure. For a description of this member, see ToBoolean.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToByteInfrastructure. For a description of this member, see ToByte.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToCharInfrastructure. For a description of this member, see ToChar.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDateTimeInfrastructure. For a description of this member, see ToDateTime.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDecimalInfrastructure. For a description of this member, see ToDecimal.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToDoubleInfrastructure. For a description of this member, see ToDouble.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt16Infrastructure. For a description of this member, see ToInt16.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt32Infrastructure. For a description of this member, see ToInt32.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToInt64Infrastructure. For a description of this member, see ToInt64.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToSByteInfrastructure. For a description of this member, see ToSByte.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToSingleInfrastructure. For a description of this member, see ToSingle.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToTypeInfrastructure. For a description of this member, see ToType.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt16Infrastructure. For a description of this member, see ToUInt16.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt32Infrastructure. For a description of this member, see ToUInt32.
Explicit interface implemetationPrivate methodSupported by the .NET Compact FrameworkSupported by the XNA FrameworkIConvertible..::.ToUInt64Infrastructure. For a description of this member, see ToUInt64.
Top
See Also

Reference

Tags :


Page view tracker