Click here to Skip to main content
15,922,512 members
Home / Discussions / C#
   

C#

 
GeneralRe: Force CLR Version Pin
Dave Kreskowiak19-Dec-12 8:19
mveDave Kreskowiak19-Dec-12 8:19 
GeneralRe: Force CLR Version Pin
0905v4919-Dec-12 18:17
0905v4919-Dec-12 18:17 
GeneralRe: Force CLR Version Pin
Dave Kreskowiak19-Dec-12 18:50
mveDave Kreskowiak19-Dec-12 18:50 
GeneralRe: Force CLR Version Pin
0905v4919-Dec-12 20:20
0905v4919-Dec-12 20:20 
GeneralRe: Force CLR Version Pin
Dave Kreskowiak20-Dec-12 1:54
mveDave Kreskowiak20-Dec-12 1:54 
GeneralRe: Force CLR Version Pin
0905v4919-Dec-12 20:45
0905v4919-Dec-12 20:45 
QuestionSend SMS with GPRS Modem. Pin
olbinface18-Dec-12 23:31
olbinface18-Dec-12 23:31 
AnswerRe: Send SMS with GPRS Modem. Pin
Eddy Vluggen19-Dec-12 0:19
professionalEddy Vluggen19-Dec-12 0:19 
AnswerRe: Send SMS with GPRS Modem. Pin
Sivaraman Dhamodharan19-Dec-12 2:14
Sivaraman Dhamodharan19-Dec-12 2:14 
QuestionIn C#.net, How I get the Content of File Sent to Print to normal office printer Pin
Pankaj Kharche18-Dec-12 19:29
Pankaj Kharche18-Dec-12 19:29 
AnswerRe: In C#.net, How I get the Content of File Sent to Print to normal office printer Pin
Mycroft Holmes18-Dec-12 21:40
professionalMycroft Holmes18-Dec-12 21:40 
QuestionCreating Windows Application Pin
AmEhsaas18-Dec-12 18:03
AmEhsaas18-Dec-12 18:03 
AnswerRe: Creating Windows Application Pin
Mycroft Holmes18-Dec-12 21:35
professionalMycroft Holmes18-Dec-12 21:35 
AnswerRe: Creating Windows Application Pin
Richard MacCutchan18-Dec-12 22:32
mveRichard MacCutchan18-Dec-12 22:32 
AnswerRe: Creating Windows Application Pin
GREG_DORIANcod19-Dec-12 4:31
professionalGREG_DORIANcod19-Dec-12 4:31 
GeneralRe: Creating Windows Application Pin
AmEhsaas19-Dec-12 19:29
AmEhsaas19-Dec-12 19:29 
QuestionEnum Question Pin
Kevin Marois18-Dec-12 7:48
professionalKevin Marois18-Dec-12 7:48 
AnswerRe: Enum Question Pin
jschell18-Dec-12 8:07
jschell18-Dec-12 8:07 
GeneralRe: Enum Question Pin
Kevin Marois18-Dec-12 8:09
professionalKevin Marois18-Dec-12 8:09 
GeneralRe: Enum Question Pin
Richard Deeming18-Dec-12 8:15
mveRichard Deeming18-Dec-12 8:15 
GeneralRe: Enum Question Pin
Kevin Marois18-Dec-12 8:22
professionalKevin Marois18-Dec-12 8:22 
GeneralRe: Enum Question Pin
Pete O'Hanlon18-Dec-12 8:39
mvePete O'Hanlon18-Dec-12 8:39 
AnswerRe: Enum Question Pin
Richard Deeming18-Dec-12 8:47
mveRichard Deeming18-Dec-12 8:47 
GeneralRe: Enum Question Pin
PIEBALDconsult18-Dec-12 10:37
mvePIEBALDconsult18-Dec-12 10:37 
AnswerRe: Enum Question Pin
OriginalGriff18-Dec-12 8:14
mveOriginalGriff18-Dec-12 8:14 
That's difficult to answer without knowing the signature of the method you are talking about.
if the sig is:
C#
void MyMethod(MyEnum me) {}
Then it is safe to say that me contains an enum value.
it it is:
C#
void MyMethod(int i) {}
Then it could be an enum, since they are integer values.
If you mean "Can I find out if an object was an enum?" then:
C#
enum xx
    {
    v1, v2
    }
void MyMethod(object o)
    {
    Console.WriteLine(o);
    if (o is xx) Console.WriteLine("XX");
    if (o is int) Console.WriteLine("INT");
    }
void TryIt()
    {
    int i = 13;
    xx x = xx.v2;
    MyMethod(i);
    MyMethod(x);
    MyMethod((int)x);
    }

Will print:
13
INT
v2
XX
1
INT

If you get an email telling you that you can catch Swine Flu from tinned pork then just delete it. It's Spam.

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.