Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / August 2004

Tip: Looking for answers? Try searching our database.

Add custom property at runtime to an interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Henrik de Jong - 10 Aug 2004 09:53 GMT
Dear,

Is it possible to add an property to an interface. The getter and setter
should use the default indexed method Value[AFieldName].
By example adding a property Address wich uses as getter Value['Address']
and as setter Value['Address'] = .... (value).

grtz,
Henrik
Henrik de Jong - 10 Aug 2004 14:51 GMT
Some additional information:

I've got an business-object wich has a property Value wich will retreive the
value of a databasefield. To bind this object to an datagrid this object
should implement the IEnumerable and the IEnumerator. So far, so good. But
the datagrid need some published properties to show in the grid. Because it
is a sort of generic business-object with a generic property Value for
retreiving and storing data to and from my object. What I want to do is to
generate some properties at runtime wich should be used by the datagrid.

Thanks in advance,
Henrik

> Dear,
>
[quoted text clipped - 5 lines]
> grtz,
> Henrik

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.