Like I said, just because you can only get an instance initially through some other class is no reason to restrict access to the type itself. If the user wants to access multiple members of an instance they shouldn't have to access them all via some property, e.g.They should be able to assign the value of the property to a local variable and then access its properties directly, e.g.VB Code:
Dim ut As New UnrestrictedType ut.RestrictedType.Property1 = value1 ut.RestrictedType.Property2 = value2To prevent that would be poor form and I doubt that it's even possible.VB Code:
Dim ut As New UnrestrictedType Dim rt As RestrictedType = ut.RestrictedType rt.Property1 = value1 rt.Property2 = value2




Reply With Quote