Emular eso en .net:
public class StringManager { public static string Left(string text, int length) { return text.Substring(0,length); } public static string Right(string text, int length) { return text.Substring(text.Length -length, length); } public static string Mid(string text, int start, int end) { return text.Substring(start, end); } public static string Mid(string text, int start) { return text.Substring(start, text.Length - start); } } |
http://geekswithblogs.net/congsuco/archive/2005/07/07/45607.aspx