Click here to Skip to main content
15,895,557 members
Home / Discussions / C#
   

C#

 
AnswerRe: Connecting to Remote SQL Server Pin
PIEBALDconsult16-Mar-10 17:06
mvePIEBALDconsult16-Mar-10 17:06 
AnswerRe: Connecting to Remote SQL Server Pin
Russ-T16-Mar-10 17:57
Russ-T16-Mar-10 17:57 
QuestionGeneric event? Pin
Sirenfal16-Mar-10 15:04
Sirenfal16-Mar-10 15:04 
AnswerRe: Generic event? Pin
PIEBALDconsult16-Mar-10 15:44
mvePIEBALDconsult16-Mar-10 15:44 
GeneralRe: Generic event? Pin
Sirenfal16-Mar-10 16:30
Sirenfal16-Mar-10 16:30 
AnswerRe: Generic event? Pin
Gideon Engelberth16-Mar-10 18:06
Gideon Engelberth16-Mar-10 18:06 
GeneralRe: Generic event? Pin
Sirenfal16-Mar-10 18:34
Sirenfal16-Mar-10 18:34 
GeneralRe: Generic event? Pin
Gideon Engelberth17-Mar-10 3:29
Gideon Engelberth17-Mar-10 3:29 
I had assumed you had a set of classes since generics would not accept an enum value as the type parameter (since it is a constant and not a type). You could still take the approach of letting the handlers receive all events and only process the ones they care about. Something like:
void PacketProcessor(object sender, PacketEventArgs e)
{
    if (e.PacketType != Packets.SomePacket) return;

    //do processing on SomePacket data here
}

This has the advantage of making it obvious to the later reader of the code which packet is being handled by this function, but has the disadvantage all packet handlers will get called for all packets.
QuestionReplace two table's items with eachother in SQL Pin
teknolog12316-Mar-10 13:00
teknolog12316-Mar-10 13:00 
AnswerRe: Replace two table's items with eachother in SQL Pin
Luc Pattyn16-Mar-10 13:24
sitebuilderLuc Pattyn16-Mar-10 13:24 
GeneralRe: Replace two table's items with eachother in SQL Pin
teknolog12316-Mar-10 23:55
teknolog12316-Mar-10 23:55 
AnswerRe: Replace two table's items with eachother in SQL Pin
Dan Mos16-Mar-10 15:03
Dan Mos16-Mar-10 15:03 
GeneralRe: Replace two table's items with eachother in SQL Pin
teknolog12317-Mar-10 2:35
teknolog12317-Mar-10 2:35 
GeneralRe: Replace two table's items with eachother in SQL Pin
Dan Mos21-Mar-10 5:26
Dan Mos21-Mar-10 5:26 
GeneralRe: Replace two table's items with eachother in SQL Pin
teknolog12322-Mar-10 2:46
teknolog12322-Mar-10 2:46 
QuestionWhy it doesn't eat SYSTEM MEMORY???? Pin
Nick Reshetinsky16-Mar-10 7:00
Nick Reshetinsky16-Mar-10 7:00 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
OriginalGriff16-Mar-10 7:23
mveOriginalGriff16-Mar-10 7:23 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 7:25
sitebuilderLuc Pattyn16-Mar-10 7:25 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Dave Kreskowiak16-Mar-10 8:06
mveDave Kreskowiak16-Mar-10 8:06 
AnswerRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 9:17
protectorAspDotNetDev16-Mar-10 9:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 9:23
sitebuilderLuc Pattyn16-Mar-10 9:23 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 10:17
protectorAspDotNetDev16-Mar-10 10:17 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 10:27
sitebuilderLuc Pattyn16-Mar-10 10:27 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
AspDotNetDev16-Mar-10 11:29
protectorAspDotNetDev16-Mar-10 11:29 
GeneralRe: Why it doesn't eat SYSTEM MEMORY???? Pin
Luc Pattyn16-Mar-10 11:38
sitebuilderLuc Pattyn16-Mar-10 11:38 

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.