B
Brandon Miller
All,
I have an existing business object (VB.Net) which returns user IDs for our
locations in our regions.
One of the properties objReg.Manager returns the manager's user id (integer)
for a given location.
What I'd like to do is implement something similar to .ToString, so I might
call -
objReg.Manager.GetUser()
This would return a User object (which we already have written) representing
the Manager for that ID.
(There's also VP, Director, etc properties.. so this code would be used for
those properties as well)
We already have a objReg.GetManager property which does this, but I think it
would just be snazzier to implement it in the method above.
Does anyone know how I might pull this off -- or even what I would search
for to get me started?
TIA
Brandon.
I have an existing business object (VB.Net) which returns user IDs for our
locations in our regions.
One of the properties objReg.Manager returns the manager's user id (integer)
for a given location.
What I'd like to do is implement something similar to .ToString, so I might
call -
objReg.Manager.GetUser()
This would return a User object (which we already have written) representing
the Manager for that ID.
(There's also VP, Director, etc properties.. so this code would be used for
those properties as well)
We already have a objReg.GetManager property which does this, but I think it
would just be snazzier to implement it in the method above.
Does anyone know how I might pull this off -- or even what I would search
for to get me started?
TIA
Brandon.
