What are the project's views on adding to the C# API? For instance, it
seems rather absurd to do this:
char[] cc = { 'C', 'r', 'l' };
line = line.TrimEnd(cc);
When a simple overloaded function would allow:
line = line.TrimEnd("Crl");
For instance, one could simply add the following function to
System.String.cs:
public String TrimEnd(String s) {
if (null == s || s.Length == 0)
return InternalTrim(WhiteChars, 2);
return InternalTrim(s.ToCharArray(), 2);
}
Ah, that's much nicer... But, I assume that since the API is frozen,
this would be a bad idea. Am I wrong? Can this functionality be added
somehow?
Thanks,
- Scott
_______________________________________________
Mono-list maillist - [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list