HighTechTalks DotNet Forums  

Custom Property

Dotnet Academic General Discussions microsoft.public.dotnet.academic


Discuss Custom Property in the Dotnet Academic General Discussions forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Ronin
 
Posts: n/a

Default Custom Property - 01-17-2006 , 02:11 PM






Is there any way to create custom property and access the property using
"For" or "For Each" statement?

if so... would you kindly pont me to the right direction.

Please help. Thanks in advance.

Reply With Quote
  #2  
Old   
Paul Henderson
 
Posts: n/a

Default Re: Custom Property - 01-17-2006 , 03:25 PM






Quote:
Is there any way to create custom property and access the property using
"For" or "For Each" statement?
What you want might be indexers in C#, but I guess you're using VB as
you write "For Each" as two words. Alternatively, you might just want
to have your property be of a type implementing IEnumerable, which
would let you use For Each over it. It'd be helpful if you could post
some pseudocode to show the exact sort of effect you are trying to
achieve.



Reply With Quote
  #3  
Old   
Ronin
 
Posts: n/a

Default Re: Custom Property - 01-24-2006 , 09:20 AM



Thanks Paul, that helps alot.



Ronin

"Paul Henderson" wrote:

Quote:
Is there any way to create custom property and access the property using
"For" or "For Each" statement?

What you want might be indexers in C#, but I guess you're using VB as
you write "For Each" as two words. Alternatively, you might just want
to have your property be of a type implementing IEnumerable, which
would let you use For Each over it. It'd be helpful if you could post
some pseudocode to show the exact sort of effect you are trying to
achieve.



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.