Hello
Have anyone succesfully used the SetValueDirect( TypedReference, object)
method?
I'm having a object wich again holds a struct that holds the objects
internal data.
I need to set a object value on the struct.
A way to do this for a value field would be:
_subfield.SetVa lue(_field.GetV alue(obj), value);
where _field is a FieldInfo for the struct within the class,...
Search Result
Collapse
2 results in 0.0023 seconds.
Keywords
Members
Tags
-
How to use SetValueDirect (and TypedReference) with reflection
-
A way to access/loop through variables within a struct or class?
Hi there!
Does anyone know of a way on how you could access/loop through the variable
names. E.g. if you have a struct and want to loop through all variables in
that struct to give its value to the console?
Thanks in advance,
Oliver...