M
Mr. X.
In VB.NET it's mid.
In C# it's SubString.
But in VB.NET I could exceed the length of the string, and in C# I cannot.
I.e
In VB.NET :
dim s as String;
....
s = "abcdefg";
mid(s, 4,6) returns "defg"
mid(s, 6, 3) returns ""
In C#
s.SubString(3, 6) throws an exception.
s.SubString(5, 3) throws an exception.
Are there any alternatives ?
Thanks
In C# it's SubString.
But in VB.NET I could exceed the length of the string, and in C# I cannot.
I.e
In VB.NET :
dim s as String;
....
s = "abcdefg";
mid(s, 4,6) returns "defg"
mid(s, 6, 3) returns ""
In C#
s.SubString(3, 6) throws an exception.
s.SubString(5, 3) throws an exception.
Are there any alternatives ?
Thanks