H
hamerb
So the line of code I'm working on is something like this:
func(ref obj.GetType().GetProperty(PopertyNameSring).GetValue(obj,
null))
This ofcourse doesn't work since the GetValue method gets me a read
only value, not a reference to the property.
I can't drop the 'ref' due to boxing. obj might be a primetive like an
int.
There is no interface supported by obj, I'm using configuration data to
learn about the properties and the configuration data is provided at
runtime.
So I'm wondering if anyone knows a work around for this, I have to
admit I'm not sure how to get around this problem.
func(ref obj.GetType().GetProperty(PopertyNameSring).GetValue(obj,
null))
This ofcourse doesn't work since the GetValue method gets me a read
only value, not a reference to the property.
I can't drop the 'ref' due to boxing. obj might be a primetive like an
int.
There is no interface supported by obj, I'm using configuration data to
learn about the properties and the configuration data is provided at
runtime.
So I'm wondering if anyone knows a work around for this, I have to
admit I'm not sure how to get around this problem.