private RemoveCharacter ( string text, char character ) : string | ||
text | string | |
character | char | |
리턴 | string |
private string RemoveCharacter(string text, char character)
{
int index = text.IndexOf(character);
if (index >= 0)
{
text = text.Remove(index, 1);
}
return text;
}