This project has moved. For the latest updates, please go here.

Structure GetFieldValue

Jun 25, 2015 at 1:35 PM

I'm trying to make a serializer using fasterflect,
fasterflect seams powerfull and can access public/private/static members of class,
but when i try to use it on structures i got an error,

it happend when i use obj.GetFieldValue("valueName") on a structure.

(its in french but easy to understand, invalid cast from my structure, to a Fasterflect.Emitter.ValueTypeHolder)

System.InvalidCastException: Impossible d'effectuer un cast d'un objet de type 'OctogonEngine.Vector3' en type 'Fasterflect.Emitter.ValueTypeHolder'.


im very sad about it, any way i could use it with structures as well as references?

would be great, so my serializer would really serialize/unserialize anything including structures, otherway i ll have to use FastMember wich can do it but without accessing privates/static fields.