[Mono-list] How frozen is the API
Scott Bronson
bronson@rinspin.com
28 Sep 2002 14:25:25 -0700
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