Horje
which of the following string methods can be used to determine if a string contains only ‘\n’ characters? Code Example
which of the following string methods can be used to determine if a string contains only ‘\n’ characters?
bool ConsistsOnly(string input, char wanted){
	input = input.Trim();
	foreach(char current in input){
    	if(current != wanted){
        	return false;
        }
    }
    return true;
}




Csharp

Related
OBSERVER Code Example OBSERVER Code Example
c# datetime serialization issues Code Example c# datetime serialization issues Code Example
fixed angle unity Code Example fixed angle unity Code Example
translate nicely between two vector3 Code Example translate nicely between two vector3 Code Example
calculated field gridview asp.net Code Example calculated field gridview asp.net Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10