Reflection

  • Thread starter Thread starter John S
  • Start date Start date
J

John S

Can anyone explain reflection and possibly show a good coding example (other
than the Miscosoft samples)?
 
John S said:
Can anyone explain reflection and possibly show a good coding example (other
than the Miscosoft samples)?

Well, what do you want to know that the Microsoft samples doesn't show
you?
 
Pesc said:
For example, using GetType() method with parameters of the Type class.

What do you mean, exactly? Which GetType method (there are several) and
with what parameters?
 
The most simple and Java-similar: GetType method with a string containing class & namespace name.

The unique sample I found was on "ms-help://MS.VSCC.2003/MS.MSDNQTR.2003JAN.1033/Cpqstart/html/cpsmpnetsamples-howtoreflection.htm". You was reffering it or there are more Microsoft samples?
 
Pesc said:
The most simple and Java-similar: GetType method with a string
containing class & namespace name.

You mean Type.GetType - GetType (with parameters) is a method in
various classes.

Type.GetType(string) comes with an example in MSDN - are you sure you
don't see it? (It's at the bottom of the page.)
 
Back
Top