Friday, June 10, 2016

String fuctions used in .Net.

Some of the String functions used in .Net are:
a. Concat
Returns the concatenation of the arguments.

b. Contains
Returns true if the first argument string contains the second argument string; otherwise returns false.

c. Normalize-space
Returns the argument string with the white space stripped.

d. Starts-with
Returns true if the first argument string starts with the second argument string; otherwise returns false.

e. String
Converts an object to a string.

f. String-length
Returns the number of characters in the string.

g. Substring
Returns the substring of the first argument starting at the position specified in the second argument and the length specified in the third argument.

h. Substring-after
Returns the substring of the first argument string that follows the first occurrence of the second argument string in the first argument string.

i. Substring-before
Returns the substring of the first argument string that precedes the first occurrence of the second argument string in the first argument string.

j. Translate

Returns the first argument string with occurrences of characters in the second argument string replaced by the character at the corresponding position in the third argument string.

Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home