Hi
It require dynamic deserialization . So, i can't cast it to bookstorebook.. .. I can use GetProperties() to retrieve the value now.
Anyway, Thank you for your kindly reply.
User Profile
Collapse
-
I'm confusing by this type and properties... sorry about that. After Casting to ArrayList, I can get the value using the getValue method.
Actually, i would like put deserialized data into database. Are there any better way to do this?Leave a comment:
-
I'm afraid bytes.com decrease the image size.... sorry about that.
please visit the links for the images. Thanks
Cast1.jpg
http://picasaweb.google.com.hk/10972...82077224095186
ArrayList1.jpg
http://picasaweb.google.com.hk/10972...82075449908994...Leave a comment:
-
Yes, the type is bookstoreBook[]
For IEnumerable, ICollection, IList, all of them giving similar behavior. I take the IList as an example. (please refer to Cast1.jpg).
I'm not so sure how to cast to array, so I tried ArrayList instead. it can be used an index for getting the values. (Please refer to ArrayList1.jpg) . Is there any way to get the properties there?...Leave a comment:
-
Sorry for the confusion on my question. Anyway, thanks for your reply
I got the object and i can see the data in the collection. But, I don't know how to iterate to get the values. I tried your suggestion but it's not working as you said... it may due to the non-generic type... Actually, I'm trying to cast the collection to IEnumerable, ICollection, IList. However, still no luck on them. I would like to know any further suggestion? Thanks...Leave a comment:
-
How to get property values in this situation
Hi
I got a question on how to get the property values using reflection in c#. (It's my first time to use, i think i lost somewhere...)
I have compile an assembly and successfully deserialize a XML to it.
By using 'InvokeMember' method, 'result' can hold the property of 'Deserializeobj ' (image enclosed : ref_Image1.jpg) . Then, i would like to ask how to further get all the values from the collection in...
No activity results to display
Show More
Leave a comment: