I have built a program which serializes and transmits FileInfos across a network.

It worked good until I tried getting the FileInfo.Length on the computer which has received a FileInfo that is about a file on another computer. It fails saying the file doesn't exist since the Length isn't stored in the FileInfo when declaring it.

To simplify it:

Is it possible to pre-store the Length of the file before sending the FileInfo to another computer where the file doesn't exist?

Or will I need to write my own FileInfoX Class which kinda just copies a FileInfo, and then stores all the variables?