Which of the following is not a member of stringbuilder

A) Append ( )
B) Insert( )
C) Replace ( )
D) Substring( )

Showing Answers 1 - 4 of 4 Answers

hari charagundla

  • Jan 4th, 2006
 

Answer is: Dsubstring();

  Was this answer useful?  Yes

Answer: D

SubString() is not a method of StringBuilder class.

For the rest, here are the details.....

System.Text.StringBuilder sb = new System.Text.StringBuilder();

sb.Append("Kals");    //string value to be appended

sb.Insert(0, "Kals");  //Index and string value as parameters for one of the overloaded methods of Insert()

sb.Replace("-", "");   //old character to be replaced, new character to replace

Vishnu

  • Aug 8th, 2011
 

D) Substring( ) is not a member of the StringBuilder

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions