-
Using an Interface to set a Read-Only Property
I read Jimmy Nillson's 'A pure object-oriented domain model by a db-guy' series.
In one of the article's he has an interface 'IIdSetter' that is used for
"setting readonly id-properties...". If I have a Person class that has a
read-only property for PhoneNumber, and this class has a private variable
as typse IIdSetter, what would be the code interaction that would set the
Person class' PhoneNumber property. Being New to VB.NET, I can't visualize
the interaction.
Could someone please help me understand,
Matt Brook
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks