Click here to Skip to main content
15,908,254 members
Home / Discussions / C#
   

C#

 
GeneralRe: SQL Login Protection Pin
Colin Angus Mackay14-Oct-08 0:26
Colin Angus Mackay14-Oct-08 0:26 
GeneralRe: SQL Login Protection Pin
Matt Cavanagh14-Oct-08 0:30
Matt Cavanagh14-Oct-08 0:30 
GeneralRe: SQL Login Protection Pin
Ashfield14-Oct-08 1:22
Ashfield14-Oct-08 1:22 
GeneralRe: SQL Login Protection Pin
Matt Cavanagh14-Oct-08 1:26
Matt Cavanagh14-Oct-08 1:26 
GeneralRe: SQL Login Protection Pin
Mark Churchill14-Oct-08 1:37
Mark Churchill14-Oct-08 1:37 
GeneralRe: SQL Login Protection Pin
Ashfield14-Oct-08 9:19
Ashfield14-Oct-08 9:19 
GeneralRe: SQL Login Protection Pin
Matt Cavanagh14-Oct-08 21:58
Matt Cavanagh14-Oct-08 21:58 
GeneralRe: SQL Login Protection Pin
Ashfield15-Oct-08 8:41
Ashfield15-Oct-08 8:41 
GeneralRe: SQL Login Protection Pin
Matt Cavanagh15-Oct-08 21:01
Matt Cavanagh15-Oct-08 21:01 
QuestionHow to determine the Type of a null-Reference ? Pin
MarkPhB13-Oct-08 23:32
MarkPhB13-Oct-08 23:32 
AnswerRe: How to determine the Type of a null-Reference ? Pin
SeMartens13-Oct-08 23:37
SeMartens13-Oct-08 23:37 
GeneralRe: How to determine the Type of a null-Reference ? Pin
MarkPhB13-Oct-08 23:44
MarkPhB13-Oct-08 23:44 
AnswerRe: How to determine the Type of a null-Reference ? Pin
#realJSOP14-Oct-08 0:04
professional#realJSOP14-Oct-08 0:04 
GeneralRe: How to determine the Type of a null-Reference ? Pin
Colin Angus Mackay14-Oct-08 0:07
Colin Angus Mackay14-Oct-08 0:07 
GeneralRe: How to determine the Type of a null-Reference ? Pin
DaveyM6914-Oct-08 0:51
professionalDaveyM6914-Oct-08 0:51 
GeneralRe: How to determine the Type of a null-Reference ? Pin
MarkPhB14-Oct-08 0:18
MarkPhB14-Oct-08 0:18 
AnswerRe: How to determine the Type of a null-Reference ? Pin
Simon P Stevens14-Oct-08 0:39
Simon P Stevens14-Oct-08 0:39 
You can't.

A null object doesn't have a type, that's why it throws an exception. Reflection is for viewing the runtime state of objects and during runtime a null object is null and has no type.

If you need a Type object, you can use typeof(MyClass).

It's like asking if a pen is made from plastic or metal before it's been made. You can't. You can ask afterwards. But before, all you can do is look at the construction materials in the blueprint for a PlasticPen or a MetalPen (the classes), you don't know which it is until after you've created it.

Simon

GeneralRe: How to determine the Type of a null-Reference ? Pin
Mark Churchill14-Oct-08 2:35
Mark Churchill14-Oct-08 2:35 
GeneralRe: How to determine the Type of a null-Reference ? Pin
Simon P Stevens14-Oct-08 2:50
Simon P Stevens14-Oct-08 2:50 
GeneralRe: How to determine the Type of a null-Reference ? Pin
Mark Churchill14-Oct-08 2:57
Mark Churchill14-Oct-08 2:57 
AnswerRe: How to determine the Type of a null-Reference ? Pin
Scott Dorman14-Oct-08 8:23
professionalScott Dorman14-Oct-08 8:23 
Questionusing lparam parameter of SendMessage function Pin
Sandeep Kalra13-Oct-08 22:37
Sandeep Kalra13-Oct-08 22:37 
AnswerRe: using lparam parameter of SendMessage function Pin
Simon P Stevens13-Oct-08 23:12
Simon P Stevens13-Oct-08 23:12 
GeneralRe: using lparam parameter of SendMessage function Pin
Sandeep Kalra13-Oct-08 23:47
Sandeep Kalra13-Oct-08 23:47 
GeneralRe: using lparam parameter of SendMessage function Pin
Simon P Stevens14-Oct-08 0:30
Simon P Stevens14-Oct-08 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.