BTW: you might also want to take a look into static reflection...

http://ayende.com/Blog/2005/10/29/StaticReflection.aspx

Felipe Teixeira
Microsoft Certified Technology Specialist - MCTS - Microsoft .Net Framework
2.0
Application Development Foundation MS
Web -based Client Development
Mobile: +55 (11) 8021-6457
[email protected]
http://iguessimnotcrazy.wordpress.com/


2009/11/5 Felipe Teixeira <[email protected]>

> I woldn't say 99%... not even 0,000001%.
>
> Overhead is *never* negligible.
>
> Other than that, reflection is not a monster anyway.. Use it wisely and
> everything should be just fine.
>
> *Felipe Teixeira *
> Microsoft Certified Technology Specialist - MCTS - Microsoft .Net Framework
> 2.0
> Application Development Foundation MS
> Web -based Client Development
> Mobile: +55 (11) 8021-6457
> [email protected]
> http://iguessimnotcrazy.wordpress.com/
>
>
> 2009/11/5 Jamie Fraser <[email protected]>
>
> And in 99% of cases the "overhead" is negligible. Don't be scared of
>> reflection.
>>
>>
>> On Wed, Nov 4, 2009 at 3:58 PM, Felipe Teixeira <[email protected]>wrote:
>>
>>> Generics<http://msdn.microsoft.com/en-us/library/ms379564%28VS.80%29.aspx>+ 
>>> Reflection
>>> <http://msdn.microsoft.com/en-us/library/ms173183%28VS.80%29.aspx>+ Abstract
>>> Class<http://radio.weblogs.com/0111551/stories/2002/10/11/cAbstractClasses.html>=
>>>  FUN :D
>>>
>>> Be aware that when using Reflection you are adding some delay to the
>>> process.
>>>
>>> Felipe Teixeira
>>> Microsoft Certified Technology Specialist - MCTS - Microsoft .Net
>>> Framework 2.0
>>> Application Development Foundation MS
>>> Web -based Client Development
>>> Mobile: +55 (11) 8021-6457
>>> http://iguessimnotcrazy.wordpress.com/
>>>
>>>
>>> 2009/11/4 Paulo Roberto Pellucci <[email protected]>
>>>
>>> Start a search about reflection, that is what you'll need.
>>>>
>>>>
>>>> On Wed, Nov 4, 2009 at 4:41 AM, Cerebrus <[email protected]> wrote:
>>>>
>>>>>
>>>>> I think that the Type.GetProperties function provides exactly what you
>>>>> need. (Why you need it is another matter, altogether).
>>>>>
>>>>>
>>>>> On Nov 4, 12:50 am, Taner Eser <[email protected]> wrote:
>>>>> > Hi all.
>>>>> >
>>>>> > Consider this;
>>>>> >
>>>>> > I have a class with bunch of properties and i would like to do
>>>>> exactly
>>>>> > same action for each property in my class.
>>>>> >
>>>>> > Example;
>>>>> >
>>>>> > foreach(property myProperty in MyClassName.Properties)
>>>>> > {
>>>>> >      //Do the job!
>>>>> >
>>>>> > }
>>>>> >
>>>>> > Any suggestions?
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Atenciosamente,
>>>> Paulo Roberto S. Pellucci
>>>>
>>>
>>>
>>
>

Reply via email to