Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
SuggestionRe: StackOverflowException when pressing a specific button on certain computers Pin
Trak4Net26-Jun-12 19:54
Trak4Net26-Jun-12 19:54 
GeneralRe: StackOverflowException when pressing a specific button on certain computers Pin
OriginalGriff26-Jun-12 21:08
mveOriginalGriff26-Jun-12 21:08 
AnswerRe: StackOverflowException when pressing a specific button on certain computers Pin
Luc Pattyn27-Jun-12 5:30
sitebuilderLuc Pattyn27-Jun-12 5:30 
GeneralRe: StackOverflowException when pressing a specific button on certain computers Pin
brendanpi27-Jun-12 18:06
brendanpi27-Jun-12 18:06 
AnswerRe: StackOverflowException when pressing a specific button on certain computers Pin
Luc Pattyn27-Jun-12 18:14
sitebuilderLuc Pattyn27-Jun-12 18:14 
QuestionImplementation of Generic Method in List<Class> Pin
ezazazel26-Jun-12 11:16
ezazazel26-Jun-12 11:16 
AnswerRe: Implementation of Generic Method in List Pin
Pete O'Hanlon26-Jun-12 11:55
mvePete O'Hanlon26-Jun-12 11:55 
AnswerRe: Implementation of Generic Method in List Pin
Luc Pattyn26-Jun-12 12:09
sitebuilderLuc Pattyn26-Jun-12 12:09 
GeneralRe: Implementation of Generic Method in List Pin
Pete O'Hanlon26-Jun-12 12:26
mvePete O'Hanlon26-Jun-12 12:26 
GeneralRe: Implementation of Generic Method in List Pin
ezazazel26-Jun-12 12:09
ezazazel26-Jun-12 12:09 
GeneralRe: Implementation of Generic Method in List Pin
Luc Pattyn26-Jun-12 12:13
sitebuilderLuc Pattyn26-Jun-12 12:13 
GeneralRe: Implementation of Generic Method in List Pin
ezazazel26-Jun-12 19:52
ezazazel26-Jun-12 19:52 
GeneralRe: Implementation of Generic Method in List Pin
Trak4Net26-Jun-12 20:31
Trak4Net26-Jun-12 20:31 
AnswerRe: Implementation of Generic Method in List Pin
DaveyM6926-Jun-12 20:08
professionalDaveyM6926-Jun-12 20:08 
Your Calculate method is seriously flawed. You want to use a generic parameter and return type but then fix the types inside the method implementation to int and double!

You can use type constraints to ensure that any properties/methods that you need (for conversion or whatever) are supported by the types specified.
Dave

Binging is like googling, it just feels dirtier.
Please take your VB.NET out of our nice case sensitive forum.
Astonish us. Be exceptional. (Pete O'Hanlon)

BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)



GeneralRe: Implementation of Generic Method in List Pin
Trak4Net26-Jun-12 20:40
Trak4Net26-Jun-12 20:40 
GeneralRe: Implementation of Generic Method in List Pin
DaveyM6927-Jun-12 4:54
professionalDaveyM6927-Jun-12 4:54 
AnswerRe: Implementation of Generic Method in List Pin
Trak4Net26-Jun-12 21:03
Trak4Net26-Jun-12 21:03 
AnswerRe: Implementation of Generic Method in List Pin
Trak4Net27-Jun-12 1:44
Trak4Net27-Jun-12 1:44 
GeneralRe: Implementation of Generic Method in List Pin
ezazazel28-Jun-12 8:11
ezazazel28-Jun-12 8:11 
QuestionRegistering COM+ Assembly Error Pin
Member 813710526-Jun-12 9:37
Member 813710526-Jun-12 9:37 
AnswerRe: Registering COM+ Assembly Error Pin
Richard Andrew x6426-Jun-12 11:48
professionalRichard Andrew x6426-Jun-12 11:48 
GeneralRe: Registering COM+ Assembly Error Pin
Member 81371056-Jul-12 5:16
Member 81371056-Jul-12 5:16 
AnswerRe: Registering COM+ Assembly Error Pin
Member 813710513-Jul-12 3:47
Member 813710513-Jul-12 3:47 
GeneralSql Update Pin
Member 771897926-Jun-12 8:53
Member 771897926-Jun-12 8:53 
GeneralRe: Sql Update Pin
PIEBALDconsult26-Jun-12 9:25
mvePIEBALDconsult26-Jun-12 9:25 

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.