G
Guest
I am writing a method that kind of works like the default implmentation of
the serializing logic when using the Serializable attribute.
I have a base "serializer" that is using reflection to determine what
properties to serialize out. When I am deserializing I know the name of the
property and use reflection to get it. I know the type of the property from
the PropertyInfo PropertyType. The problem I have is that I need to take the
serialized value which is a string an convert it to the correct type say a
bool. How do I do this with the information I have?
Thanks
the serializing logic when using the Serializable attribute.
I have a base "serializer" that is using reflection to determine what
properties to serialize out. When I am deserializing I know the name of the
property and use reflection to get it. I know the type of the property from
the PropertyInfo PropertyType. The problem I have is that I need to take the
serialized value which is a string an convert it to the correct type say a
bool. How do I do this with the information I have?
Thanks