In my Java to C# Conversion Project, at one point I came to use java's
startsWith(string prefix, int toffset) method. I used a substring to solve it for C#.
Java Code Snippet:
String str1 = "one over the coocoo's head"; String str2 = "someone"; System.out.println(str1.startsWith(str2, 4));
C# does not have the similar method. I implemented similar thing with the following code in C#.
string.Substring(toffset).StartsWith(prefix) does the similar thing in C# as
string.startsWith(prefix, toffset) in Java. Thought it might be helpful for some of you guys. Thanks.