views:

77

answers:

1

I want to save file metadata (mostly path/name) along with the contents of the file.

I noticed that FileInfo is serializable. Does anyone know data is serialized when you save a FileInfo object? I would assume that only metadata is saved, not the contents of the file?

+2  A: 

It doesn't have any information on the file contents, so no the contents won't be serialized.

File Info class link:
http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx

Kevin