Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
AnswerRe: Using SystemParametersInfo() P/Invoke Pin
DaveyM691-Oct-11 23:24
professionalDaveyM691-Oct-11 23:24 
GeneralRe: Using SystemParametersInfo() P/Invoke Pin
namelkcip5-Oct-11 16:50
namelkcip5-Oct-11 16:50 
GeneralRe: Using SystemParametersInfo() P/Invoke Pin
DaveyM696-Oct-11 6:44
professionalDaveyM696-Oct-11 6:44 
QuestionHow to Access Methods and Properties of a Private Class Pin
namelkcip30-Sep-11 19:24
namelkcip30-Sep-11 19:24 
AnswerRe: How to Access Methods and Properties of a Private Class Pin
Dave Kreskowiak1-Oct-11 2:43
mveDave Kreskowiak1-Oct-11 2:43 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
SledgeHammer011-Oct-11 8:18
SledgeHammer011-Oct-11 8:18 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
Dave Kreskowiak1-Oct-11 8:41
mveDave Kreskowiak1-Oct-11 8:41 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
Eddy Vluggen1-Oct-11 8:42
professionalEddy Vluggen1-Oct-11 8:42 
SledgeHammer01 wrote:
Sure they are.

Cool, than it'd be very easy for you to write a code example. He's talking about a private class, which is not the thing below as you'd might expect;
C#
namespace MyTest
{
    private class Test
    {
        //
    }
}

Try to compile that, and you'll get an error;
Compiler says:
Elements defined in a namespace cannot be explicitly declared as private, protected, or protected internal.

This would be a private class;
C#
static class Owner
{
    private class SomeClass
    {
        private string SomeMethod()
        {
            return "Hello world";
        }
    }
}

Standard reflection would look like the two lines below, which would both return NULL, not the Type "SomeClass";
C#
Type someClassType = Type.GetType("SomeClass");
Type someClassType = Type.GetType("Owner.SomeClass");

Bastard Programmer from Hell Suspicious | :suss:

GeneralRe: How to Access Methods and Properties of a Private Class Pin
SledgeHammer011-Oct-11 9:58
SledgeHammer011-Oct-11 9:58 
AnswerRe: How to Access Methods and Properties of a Private Class Pin
Eddy Vluggen1-Oct-11 11:49
professionalEddy Vluggen1-Oct-11 11:49 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
Eddy Vluggen1-Oct-11 12:47
professionalEddy Vluggen1-Oct-11 12:47 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
BillWoodruff1-Oct-11 18:30
professionalBillWoodruff1-Oct-11 18:30 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
namelkcip1-Oct-11 16:33
namelkcip1-Oct-11 16:33 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
BillWoodruff1-Oct-11 18:32
professionalBillWoodruff1-Oct-11 18:32 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
Dave Kreskowiak2-Oct-11 1:54
mveDave Kreskowiak2-Oct-11 1:54 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
BobJanova2-Oct-11 22:28
BobJanova2-Oct-11 22:28 
GeneralRe: How to Access Methods and Properties of a Private Class Pin
namelkcip5-Oct-11 16:56
namelkcip5-Oct-11 16:56 
AnswerRe: How to Access Methods and Properties of a Private Class Pin
PIEBALDconsult1-Oct-11 4:01
mvePIEBALDconsult1-Oct-11 4:01 
QuestionReceiving Data on Socket Class Pin
Richard Andrew x6430-Sep-11 13:23
professionalRichard Andrew x6430-Sep-11 13:23 
AnswerRe: Receiving Data on Socket Class Pin
André Kraak30-Sep-11 13:48
André Kraak30-Sep-11 13:48 
GeneralRe: Receiving Data on Socket Class Pin
Richard Andrew x6430-Sep-11 14:23
professionalRichard Andrew x6430-Sep-11 14:23 
QuestionGridView Template Field Value Pin
jashimu30-Sep-11 10:01
jashimu30-Sep-11 10:01 
AnswerRe: GridView Template Field Value Pin
Eddy Vluggen30-Sep-11 11:26
professionalEddy Vluggen30-Sep-11 11:26 
AnswerRe: GridView Template Field Value Pin
Perić Željko6-Oct-11 3:36
professionalPerić Željko6-Oct-11 3:36 
QuestionSettings/reading files attributes Pin
devvvy30-Sep-11 0:07
devvvy30-Sep-11 0:07 

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.