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

C#

 
AnswerRe: this question twisted me. Pin
Christian Graus25-Feb-07 8:51
protectorChristian Graus25-Feb-07 8:51 
Well, it's plainly not 1 or 3. I'm not sure what 4 means, but I doubt it's that. It must be 2, although I have no idea what that means, either.

Reflection allows you to look at private variables, I believe. But, a type safe variable just means a variable that is typed. A variable is just

int x;

that has no features at all, it's just a variable. So, I assume they mean a property, not a variable. The question itself is retarded, IMO.

If it's a property, then you can do this:

int x
{
get
{
return myPrivateInt;
}
}

but, type safety has nothing to do with it, this would work if x was of type object. And, if this is called 'code access control', that's not a term I've ever heard.


Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )

AnswerRe: this question twisted me. Pin
Colin Angus Mackay25-Feb-07 9:01
Colin Angus Mackay25-Feb-07 9:01 
QuestionProducer/Consumer & locking mechanisms... Pin
Shy Agam25-Feb-07 3:31
Shy Agam25-Feb-07 3:31 
AnswerRe: Producer/Consumer & locking mechanisms... Pin
Daniel Grunwald25-Feb-07 6:10
Daniel Grunwald25-Feb-07 6:10 
AnswerRe: Producer/Consumer & locking mechanisms... Pin
S. Senthil Kumar25-Feb-07 6:11
S. Senthil Kumar25-Feb-07 6:11 
AnswerRe: Producer/Consumer & locking mechanisms... Pin
Shy Agam25-Feb-07 7:55
Shy Agam25-Feb-07 7:55 
QuestionUse collection of elements like an indexed array Pin
Monin D.25-Feb-07 2:46
Monin D.25-Feb-07 2:46 
AnswerRe: Use collection of elements like an indexed array Pin
Luc Pattyn25-Feb-07 2:56
sitebuilderLuc Pattyn25-Feb-07 2:56 
AnswerRe: Use collection of elements like an indexed array Pin
Guffa25-Feb-07 2:59
Guffa25-Feb-07 2:59 
GeneralRe: Use collection of elements like an indexed array Pin
Monin D.25-Feb-07 3:05
Monin D.25-Feb-07 3:05 
QuestionCustom DataGrid display Pin
SunsOfFun25-Feb-07 2:22
SunsOfFun25-Feb-07 2:22 
Question[Message Deleted] Pin
Zealous_Me24-Feb-07 22:37
Zealous_Me24-Feb-07 22:37 
GeneralRe: Type Safe Variable Problem Pin
Guffa25-Feb-07 1:45
Guffa25-Feb-07 1:45 
Generalheeello mr. brainy Pin
Zealous_Me25-Feb-07 8:12
Zealous_Me25-Feb-07 8:12 
GeneralRe: heeello mr. brainy Pin
Guffa25-Feb-07 9:34
Guffa25-Feb-07 9:34 
GeneralRe: heeello mr. brainy Pin
Wayne Phipps25-Feb-07 11:29
Wayne Phipps25-Feb-07 11:29 
GeneralRe: Type Safe Variable Problem Pin
Christian Graus25-Feb-07 8:53
protectorChristian Graus25-Feb-07 8:53 
GeneralRe: Type Safe Variable Problem Pin
Dave Kreskowiak25-Feb-07 9:20
mveDave Kreskowiak25-Feb-07 9:20 
GeneralRe: Type Safe Variable Problem Pin
Christian Graus25-Feb-07 9:46
protectorChristian Graus25-Feb-07 9:46 
GeneralRe: Type Safe Variable Problem Pin
Dave Kreskowiak26-Feb-07 12:57
mveDave Kreskowiak26-Feb-07 12:57 
GeneralRe: Type Safe Variable Problem Pin
Guffa25-Feb-07 9:36
Guffa25-Feb-07 9:36 
AnswerRe: Type Safe Variable Problem Pin
Professor Sharada Ulhas26-Feb-07 13:45
Professor Sharada Ulhas26-Feb-07 13:45 
QuestionDenying access to file Pin
sharpiesharpie24-Feb-07 21:51
sharpiesharpie24-Feb-07 21:51 
AnswerRe: Denying access to file Pin
coolestCoder25-Feb-07 0:05
coolestCoder25-Feb-07 0:05 
QuestionDebug a dll Pin
usermans24-Feb-07 21:31
usermans24-Feb-07 21:31 

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.