TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Karthi Keyan
1k
755
237.3k
string.Substring(); Index and length must refer to location
Jun 5 2017 4:14 AM
Hi,
i got the error in below code. what i did wrong...
Error : Index and length must refer to a location within the string.\r\nParameter name: length
Code :
int l1 = elespt[0].Length - 50;
int l2 = elespt[0].Length - 1;
string val = elespt[0].ToString();
p1 = val.Substring(l1, l2);
elespt[0] is " this page, it means the vendor you purchased this e-book from did not deliver the correct file. Please contact ".
Thanks in Advance.
Reply
Answers (
2
)
partial class == abstract == method overriding ?
C# variable defined then redefined issue