How can i deserialize and cast the following xml file?
I want Valid element be casted to bool property and Time object be casted in DateTime property
<Foo>
<Valid>True</Valid>
<Time>19/02/2012 00:25:50</Time>
</Foo>
And not with reflection please
Xml deserialization.
Create your class with attributes:
Remember – fields must be public.
And then: