Re: Yet another Reflection / Interface Question
- From: Jon Skeet [C# MVP] <skeet@xxxxxxxxx>
- Date: Fri, 16 Feb 2007 20:49:19 -0000
rowe_newsgroups <rowe_email@xxxxxxxxx> wrote:
Unfortunately, you confirmed my fears - I was just hoping in my
"newness" to reflection I was missing something. I guess I could use
reflection to just call the methods as you suggest, but how do I map
the events and get/set the properties? Sorry, this is really my first
exposure to reflection. Any good links for this?
Events and properties are available in reflection in the same way as
methods - Type.GetProperty and Type.GetEvent. Look at PropertyInfo and
EventInfo for what you can then do with them.
--
Jon Skeet - <skeet@xxxxxxxxx>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
If replying to the group, please do not mail me too
.
- Follow-Ups:
- Re: Yet another Reflection / Interface Question
- From: rowe_newsgroups
- Re: Yet another Reflection / Interface Question
- References:
- Yet another Reflection / Interface Question
- From: rowe_newsgroups
- Re: Yet another Reflection / Interface Question
- From: Jon Skeet [C# MVP]
- Re: Yet another Reflection / Interface Question
- From: rowe_newsgroups
- Re: Yet another Reflection / Interface Question
- From: Ignacio Machin \( .NET/ C# MVP \)
- Re: Yet another Reflection / Interface Question
- From: rowe_newsgroups
- Yet another Reflection / Interface Question
- Prev by Date: Re: SQL Statement in C#
- Next by Date: Re: Newbie question: How do I initialize an array
- Previous by thread: Re: Yet another Reflection / Interface Question
- Next by thread: Re: Yet another Reflection / Interface Question
- Index(es):
Relevant Pages
|