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
David Smith
NA
2k
0
C Sharp BOF & EOF
Dec 9 2014 10:14 PM
What would be the best robust approach for the BOF & EOF logic in c sharp class along with robust error handling?? I am creating BOF and EOF static extension methods below.
Return false if record count is less than 0, else return true
public static bool BOF(this DataTable datatable, int index)
{
try
{
return false;
}
catch (Exception ex)
{
throw new Exception("BOF: \n" + ex.Message);
}
}
Greater than or equal to count;
public static bool EOF(this DataTable datatable, int index)
{
try
{
return false;
}
catch (Exception ex)
{
throw new Exception("EOF: \n" + ex.Message);
}
}
Reply
Answers (
0
)
Nested Dictionary looping challenge need help!
How do display forms project in treeview ?