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

C#

 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Jacob D Dixon8-Nov-10 17:57
Jacob D Dixon8-Nov-10 17:57 
GeneralRe: What am I doing wrong?? Sending serialized objects with Async Sockets.. Pin
Member 1841422-Mar-11 22:48
Member 1841422-Mar-11 22:48 
QuestionUSer Control Error Pin
SRJ925-Nov-10 17:19
SRJ925-Nov-10 17:19 
AnswerRe: USer Control Error Pin
OriginalGriff5-Nov-10 22:54
mveOriginalGriff5-Nov-10 22:54 
AnswerRe: USer Control Error Pin
_Erik_5-Nov-10 23:15
_Erik_5-Nov-10 23:15 
QuestionSocket error on service stop Pin
Jacob D Dixon5-Nov-10 14:40
Jacob D Dixon5-Nov-10 14:40 
AnswerRe: Socket error on service stop Pin
RaviRanjanKr5-Nov-10 19:08
professionalRaviRanjanKr5-Nov-10 19:08 
GeneralRe: Socket error on service stop [modified] Pin
Jacob D Dixon6-Nov-10 5:32
Jacob D Dixon6-Nov-10 5:32 
QuestionUnit testing Pin
Tichaona J5-Nov-10 7:51
Tichaona J5-Nov-10 7:51 
AnswerRe: Unit testing Pin
fjdiewornncalwe5-Nov-10 8:12
professionalfjdiewornncalwe5-Nov-10 8:12 
AnswerRe: Unit testing Pin
Dave Kreskowiak5-Nov-10 9:43
mveDave Kreskowiak5-Nov-10 9:43 
GeneralRe: Unit testing Pin
Tichaona J5-Nov-10 12:00
Tichaona J5-Nov-10 12:00 
GeneralRe: Unit testing Pin
Pete O'Hanlon5-Nov-10 12:07
mvePete O'Hanlon5-Nov-10 12:07 
GeneralRe: Unit testing Pin
Dave Kreskowiak5-Nov-10 14:08
mveDave Kreskowiak5-Nov-10 14:08 
AnswerRe: Unit testing Pin
David Ewen8-Nov-10 14:07
professionalDavid Ewen8-Nov-10 14:07 
QuestionBadly behaving COM object. Pin
jbradshaw5-Nov-10 3:12
jbradshaw5-Nov-10 3:12 
AnswerRe: Badly behaving COM object. Pin
OriginalGriff5-Nov-10 3:33
mveOriginalGriff5-Nov-10 3:33 
AnswerRe: Badly behaving COM object. Pin
Abhinav S5-Nov-10 3:36
Abhinav S5-Nov-10 3:36 
AnswerRe: Badly behaving COM object. Pin
_Erik_5-Nov-10 3:38
_Erik_5-Nov-10 3:38 
AnswerRe: Badly behaving COM object. Pin
Pete O'Hanlon5-Nov-10 3:43
mvePete O'Hanlon5-Nov-10 3:43 
QuestionWorking with own libaries Pin
neus835-Nov-10 2:28
neus835-Nov-10 2:28 
AnswerRe: Working with own libaries Pin
Abhinav S5-Nov-10 2:45
Abhinav S5-Nov-10 2:45 
AnswerRe: Working with own libaries Pin
Not Active5-Nov-10 2:47
mentorNot Active5-Nov-10 2:47 
AnswerRe: Working with own libaries Pin
_Erik_5-Nov-10 2:54
_Erik_5-Nov-10 2:54 
GeneralRe: Working with own libaries [modified] Pin
neus835-Nov-10 4:43
neus835-Nov-10 4:43 
yes I think I'm walking a step forward.

I was creating an enum and read out the integer.

But how can I transfer enum values to a method ?

At the moment i use "int MessageType"
I will call the Method Loggerschema
i.e:
LoggerScheme(ex.ToString(),MessageType.Error);



public enum MessageType1{Information=1,Error,Warning};

public void LoggerScheme(string ex, int MessageType)
{
if(MessageType==1)
{
// This is a Information Message
// But I prefer to give Type "Information" instead 1
}
if(MessageType==2)
{
// This is a Error Message
// But I prefer to give Type "Error" instead 2
}
if(MessageType==3)
{
// This is a Warning Message
// But I prefer to give Type "Warning" instead 2
}
}

modified on Friday, November 5, 2010 10:53 AM

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.