Click here to Skip to main content
15,888,610 members
Home / Discussions / C#
   

C#

 
GeneralRe: Thoughts why Mini Application Stops Working once executed ? Pin
namerg13-Feb-15 7:40
namerg13-Feb-15 7:40 
AnswerRe: How to add website into compatibility view ? Pin
namerg13-Feb-15 8:09
namerg13-Feb-15 8:09 
AnswerRe: How to add website into compatibility view ? Pin
seemajoshii13-Feb-15 20:31
seemajoshii13-Feb-15 20:31 
QuestionCode Signing certificate Pin
Super Lloyd13-Feb-15 2:10
Super Lloyd13-Feb-15 2:10 
AnswerRe: Code Signing certificate Pin
manchanx13-Feb-15 3:02
professionalmanchanx13-Feb-15 3:02 
AnswerRe: Code Signing certificate Pin
Eddy Vluggen13-Feb-15 3:06
professionalEddy Vluggen13-Feb-15 3:06 
RantWant Opinion on school assignment Pin
Truck5313-Feb-15 1:51
Truck5313-Feb-15 1:51 
GeneralRe: Want Opinion on school assignment Pin
Freak3013-Feb-15 2:14
Freak3013-Feb-15 2:14 
Your search function isn't generic at all. You are specifically testing for int and double inside the function. What happens if you call
C#
SearchArray<long>(5L)
or
C#
SearchArray<String>("Test")
?

I think you were supposed to write a function with a signature like this:
C#
int SearchArray<T>(T[] Array, T itemSearched)


You could have coded this function as member of the DriverProgramClass. Or if you insisted on creating an extra class MyArrayList for encapsulation, it should have been Generic (i.e. with a T[] member, instead of int[] and double[]) as well.

Besides, what does this comment about the student array mean? Did you just copy this somewhere else and slightly change it?
The good thing about pessimism is, that you are always either right or pleasently surprised.

GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 4:58
Truck5313-Feb-15 4:58 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 17:13
Truck5313-Feb-15 17:13 
GeneralRe: Want Opinion on school assignment Pin
OriginalGriff13-Feb-15 2:21
mveOriginalGriff13-Feb-15 2:21 
GeneralRe: Want Opinion on school assignment Pin
Eddy Vluggen13-Feb-15 3:03
professionalEddy Vluggen13-Feb-15 3:03 
GeneralRe: Want Opinion on school assignment Pin
OriginalGriff13-Feb-15 4:34
mveOriginalGriff13-Feb-15 4:34 
GeneralRe: Want Opinion on school assignment Pin
Eddy Vluggen13-Feb-15 4:52
professionalEddy Vluggen13-Feb-15 4:52 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 5:01
Truck5313-Feb-15 5:01 
GeneralRe: Want Opinion on school assignment Pin
Dave Kreskowiak13-Feb-15 3:03
mveDave Kreskowiak13-Feb-15 3:03 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 5:01
Truck5313-Feb-15 5:01 
GeneralRe: Want Opinion on school assignment Pin
Pete O'Hanlon13-Feb-15 3:18
mvePete O'Hanlon13-Feb-15 3:18 
GeneralRe: Want Opinion on school assignment Pin
Truck5313-Feb-15 5:01
Truck5313-Feb-15 5:01 
Questionhow to insert wifi scan data into sql table Pin
Olu_0112-Feb-15 18:03
Olu_0112-Feb-15 18:03 
AnswerRe: how to insert wifi scan data into sql table Pin
Wendelius12-Feb-15 18:31
mentorWendelius12-Feb-15 18:31 
GeneralRe: how to insert wifi scan data into sql table Pin
Olu_0112-Feb-15 23:17
Olu_0112-Feb-15 23:17 
GeneralRe: how to insert wifi scan data into sql table Pin
Wendelius13-Feb-15 3:01
mentorWendelius13-Feb-15 3:01 
GeneralRe: how to insert wifi scan data into sql table Pin
Olu_0116-Feb-15 12:16
Olu_0116-Feb-15 12:16 
AnswerRe: how to insert wifi scan data into sql table Pin
Chris Quinn13-Feb-15 0:29
Chris Quinn13-Feb-15 0:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.