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

C#

 
QuestionWeb Browser Automation and WebBrowserReadyState.Complete cannot view redirect page Pin
JoeJankowski18-Jan-09 9:43
JoeJankowski18-Jan-09 9:43 
QuestionImage size Pin
Blue_Boy18-Jan-09 8:02
Blue_Boy18-Jan-09 8:02 
AnswerRe: Image size Pin
Ravi Bhavnani18-Jan-09 8:09
professionalRavi Bhavnani18-Jan-09 8:09 
AnswerRe: Image size Pin
Luc Pattyn18-Jan-09 8:13
sitebuilderLuc Pattyn18-Jan-09 8:13 
GeneralRe: Image size Pin
Blue_Boy18-Jan-09 9:09
Blue_Boy18-Jan-09 9:09 
GeneralRe: Image size Pin
Luc Pattyn18-Jan-09 9:10
sitebuilderLuc Pattyn18-Jan-09 9:10 
QuestionWindows 7, SetWindowPos, and AnimateWindow Pin
brian.shapiro18-Jan-09 6:10
brian.shapiro18-Jan-09 6:10 
QuestionWhy is this not CLS compliant? Pin
#realJSOP18-Jan-09 2:48
mve#realJSOP18-Jan-09 2:48 
Given the following code:

namespace WinServices
{
    public enum SC_ACTION_TYPE
    {
        SC_ACTION_NONE=0,
        SC_ACTION_RESTART=1,
        SC_ACTION_REBOOT=2,
        SC_ACTION_RUN_COMMAND=3
    }
}

// in another file
using WinServices;

public class MyClass
{
    // data members
    private static WinServices.SC_ACTION_TYPE m_actionType1 = 
                   WinServices.SC_ACTION_TYPE.SC_ACTION_NONE;
    private static WinServices.SC_ACTION_TYPE m_actionType2 = 
                   WinServices.SC_ACTION_TYPE.SC_ACTION_NONE;
    private static WinServices.SC_ACTION_TYPE m_actionType3 = 
                   WinServices.SC_ACTION_TYPE.SC_ACTION_NONE;
}


Why am I getting a CLS compliance warning with this code (the property name - bolded, italicized, and underlined - is where the warning is happening)?

using WinServices;

public class MyClass
{
    // properties
    public static WinServices.SC_ACTION_TYPE ActionType1 
    { get { return m_actionType1; } }

    public static WinServices.SC_ACTION_TYPE ActionType2
    { get { return m_actionType2; } }

    public static WinServices.SC_ACTION_TYPE ActionType3
    { get { return m_actionType3; } }
}



"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
-----
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001


AnswerRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 3:46
sitebuilderNicholas Butler18-Jan-09 3:46 
GeneralRe: Why is this not CLS compliant? Pin
#realJSOP18-Jan-09 4:38
mve#realJSOP18-Jan-09 4:38 
GeneralRe: Why is this not CLS compliant? Pin
Nicholas Butler18-Jan-09 5:29
sitebuilderNicholas Butler18-Jan-09 5:29 
QuestionProgramming Web In C# Pin
trinm198718-Jan-09 1:56
trinm198718-Jan-09 1:56 
Questiondrawing gone Pin
staticv18-Jan-09 0:49
staticv18-Jan-09 0:49 
AnswerRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 0:56
Mustafa Ismail Mustafa18-Jan-09 0:56 
GeneralRe: drawing gone Pin
staticv18-Jan-09 1:19
staticv18-Jan-09 1:19 
GeneralRe: drawing gone Pin
Mustafa Ismail Mustafa18-Jan-09 1:25
Mustafa Ismail Mustafa18-Jan-09 1:25 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:34
Colin Angus Mackay18-Jan-09 1:34 
GeneralRe: drawing gone Pin
Guffa18-Jan-09 1:57
Guffa18-Jan-09 1:57 
GeneralRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 2:03
Colin Angus Mackay18-Jan-09 2:03 
AnswerRe: drawing gone Pin
Colin Angus Mackay18-Jan-09 1:00
Colin Angus Mackay18-Jan-09 1:00 
AnswerRe: drawing gone Pin
Christian Graus18-Jan-09 1:23
protectorChristian Graus18-Jan-09 1:23 
GeneralRe: drawing gone Pin
Giorgi Dalakishvili18-Jan-09 1:32
mentorGiorgi Dalakishvili18-Jan-09 1:32 
GeneralRe: drawing gone Pin
Christian Graus18-Jan-09 1:37
protectorChristian Graus18-Jan-09 1:37 
GeneralRe: drawing gone Pin
staticv18-Jan-09 2:02
staticv18-Jan-09 2:02 
Questionmonitor network status Pin
George_George18-Jan-09 0:30
George_George18-Jan-09 0:30 

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.