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
onez
NA
73
0
Multiple type parameters and return values
Sep 11 2004 10:12 PM
This class returns a max double value out of a double array. I would like to enter any type of numerical array and return the max. I remember a C++ code that involving putting a T in front of 'type' or something that was real easy. public static double ReturnMax(ArrayList Values) { int c = 0; double Max = 0; double Val; while (c < Values.Count) { Val = Convert.ToDouble(Values[c]); if (Val > Max) { Max = Val; } c++; } return Max; }
Reply
Answers (
2
)
Save Command
Dataset or not to dataset