How can I determine whether xml serializer can serialize a file
Posted
by ldsenow
on Stack Overflow
See other posts from Stack Overflow
or by ldsenow
Published on 2010-05-06T21:54:09Z
Indexed on
2010/05/06
21:58 UTC
Read the original article
Hit count: 211
c#
|xml-serialization
Hi,
How can I determine whether xml serializer can serialize a file which is in a shared location and monitored by a file monitor.
The file monitor has a list of parsers which are used to parse files in the shared folder. Once a file gets dropped into the folder, the file monitor will ask the registered parsers whether any of them can handle this file, if yes, the monitor will move the file out from the shared folder and assigns the task to the parser.
Since some of the files are quite big, so I need to have a quick check on each parsers. How can I determine my xml parser can serialize the file without loading the full file into the memory?
© Stack Overflow or respective owner