Click here to Skip to main content
15,913,610 members
Home / Discussions / C#
   

C#

 
AnswerRe: 64 bit Pin
DaveyM691-Jun-08 22:50
professionalDaveyM691-Jun-08 22:50 
AnswerRe: 64 bit Pin
DaveyM691-Jun-08 22:52
professionalDaveyM691-Jun-08 22:52 
QuestionTwo basic questions about reflection Pin
George_George1-Jun-08 16:54
George_George1-Jun-08 16:54 
AnswerRe: Two basic questions about reflection Pin
PIEBALDconsult1-Jun-08 17:42
mvePIEBALDconsult1-Jun-08 17:42 
GeneralRe: Two basic questions about reflection Pin
George_George1-Jun-08 18:35
George_George1-Jun-08 18:35 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult1-Jun-08 19:20
mvePIEBALDconsult1-Jun-08 19:20 
GeneralRe: Two basic questions about reflection Pin
George_George1-Jun-08 19:42
George_George1-Jun-08 19:42 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman2-Jun-08 4:37
professionalScott Dorman2-Jun-08 4:37 
George_George wrote:
But why using Instance tag alone is not working?


Reading the documentation[^], in the remarks section it says:
If the requested filed [sic] is non-public and the caller does not have ReflectionPermission to reflect non-public objects outside the current assembly, this method returns nullNothingnullptra null reference (Nothing in Visual Basic).
From your original example[^], your fields are implicitly declared as private.

You need to either make the fields public or adding BindingFlags.NonPublic.

Scott.

—In just two days, tomorrow will be yesterday.
—Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai

[Forum Guidelines] [Articles] [Blog]

GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 2:32
George_George3-Jun-08 2:32 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 2:43
professionalScott Dorman3-Jun-08 2:43 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 3:05
George_George3-Jun-08 3:05 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 3:15
professionalScott Dorman3-Jun-08 3:15 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 15:33
George_George3-Jun-08 15:33 
GeneralRe: Two basic questions about reflection Pin
Scott Dorman3-Jun-08 16:36
professionalScott Dorman3-Jun-08 16:36 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 17:27
George_George3-Jun-08 17:27 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult2-Jun-08 6:29
mvePIEBALDconsult2-Jun-08 6:29 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 2:34
George_George3-Jun-08 2:34 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult3-Jun-08 18:01
mvePIEBALDconsult3-Jun-08 18:01 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 18:23
George_George3-Jun-08 18:23 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult3-Jun-08 18:46
mvePIEBALDconsult3-Jun-08 18:46 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 18:52
George_George3-Jun-08 18:52 
GeneralRe: Two basic questions about reflection Pin
PIEBALDconsult3-Jun-08 19:06
mvePIEBALDconsult3-Jun-08 19:06 
GeneralRe: Two basic questions about reflection Pin
George_George3-Jun-08 21:35
George_George3-Jun-08 21:35 
Questionhow to use event to re-write this code segment? Pin
George_George1-Jun-08 15:11
George_George1-Jun-08 15:11 
AnswerRe: how to use event to re-write this code segment? Pin
Christian Graus1-Jun-08 15:52
protectorChristian Graus1-Jun-08 15:52 

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.